Skip to content

Instantly share code, notes, and snippets.

@bowbow99
Created March 4, 2012 22:50
Show Gist options
  • Save bowbow99/1975221 to your computer and use it in GitHub Desktop.
Save bowbow99/1975221 to your computer and use it in GitHub Desktop.
#xyzzy interactive で循環参照してるリストを要素として持つリストを使うと M-x で死ぬ
(defun interactive-test (x)
(interactive (list '#1=(a . #1#)))
(let ((*print-circle* t))
(msgbox "~S" x)))
=> interactive-test
(interactive-test '#1=(a . #1#))
;; msgbox で
;; #1=(a . #1#)
;; と表示される
=> :ok
(apply 'interactive-test (list '#1=(a. #1#)))
=> :ok
(call-interactively 'interactive-test)
=> :ok
;; M-x interactive-test
;; .....戻ってこない
@bowbow99
Copy link
Author

bowbow99 commented Mar 4, 2012

define-key して実行、も問題無いようだ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment