バッファーで次のコードを押すC-c 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-sendがここで定義されています。