[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to clipboard copy emacs help text by user-made interactive function
From: |
Budi |
Subject: |
How to clipboard copy emacs help text by user-made interactive function kill-ring-save |
Date: |
Thu, 9 May 2019 11:22:33 +0700 |
I tried to clipboard copy some emacs read-only text by user-made
interactive function kill-ring-save, but fail
It's not M-w bound to kill-ring-save emacs built in function which is working
but as my preceding question, the copy :
(defun copy (b e)
(interactive "r")
(if (use-region-p) (call-interactively 'kill-ring-save)
(save-excursion
(beginning-of-line)
(set-mark (line-end-position))
(kill-ring-save (point)(mark))
))))
(global-set-key (kbd "C-c") 'copy)
cannot copy such case above,
any idea what's actually made different behavior of kill-ring-save ?
- How to clipboard copy emacs help text by user-made interactive function kill-ring-save,
Budi <=