【发布时间】:2013-12-31 08:25:53
【问题描述】:
以下代码有什么问题:
(defun test
(interactive)
(message "hello"))
(global-set-key '[f4] 'test)
当使用 eval-region 评估这个然后按 F4 我得到错误:
Wrong type argument: commandp, test
【问题讨论】:
-
尝试
(defun test () ...),参数列表为空。 -
是的,它有效。非常感谢!你可以给它作为答案,我会接受它..