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"