Cocoa Emacs は安定していると思ったが、 どうもポップアップダイアログが出ると暫くして落ちてしまう。
flymake をチマチマ使えるように設定を弄ったら、時々でるポップアップに刺さる。。。
しようがないので、gdbで追っかけてみた。
調べてみたら、次のような簡単な処理でも、 ポップアップが出て暫くしてEmacsが落ちるようである。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(x-popup-dialog | |
t | |
'("Sample Popup" | |
("OK" . t)) | |
t) |
どうも inline patch 側での処理抜けらしい。。。 こんな感じに修正すると落ちなくなった
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/nsterm.m b/src/nsterm.m | |
index 635f737..4aade4a 100644 | |
--- a/src/nsterm.m | |
+++ b/src/nsterm.m | |
@@ -3920,6 +3920,8 @@ ns_term_shutdown (int sig) | |
if (mac_store_change_input_method_event()) | |
{ | |
+ if (!emacs_event) | |
+ return; | |
emacs_event->kind = NS_NONKEY_EVENT; | |
emacs_event->code = KEY_MAC_CHANGE_INPUT_METHOD; | |
EV_TRAILER ((id)nil); |
うん、すこぶる快適
0 件のコメント:
コメントを投稿