当我按下Cc c
与上形成缓冲下面的代码,Emacs的抱怨与Invalid function: (select-current-line)
。 为什么?
(defun select-current-line ()
"Select the current line"
(interactive)
(end-of-line) ; move to end of line
(set-mark (line-beginning-position)))
(defun my-isend ()
(interactive)
(if (and transient-mark-mode mark-active)
(isend-send)
((select-current-line)
(isend-send)))
)
(global-set-key (kbd "C-c c") 'my-isend)
这不是问题,但对于那些有兴趣isend,发送在这里被定义。