kill-ring

    1热度

    1回答

    我写了一个elisp函数来复制当前行,如果没有选择区域,但它不适用于emacs 24.5。当我点击“M-w”键击时,在小缓冲区中出现“Mark set”消息。我错过了什么? (defun copy-region-or-current-line (beg end) "copy current if no region selected, copy the region otherwise"