unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to clipboard copy emacs help text by user-made interactive function kill-ring-save
@ 2019-05-09  4:22 Budi
  2019-05-09  5:36 ` Emanuel Berg
  2019-05-09 23:34 ` Bruno Barbier
  0 siblings, 2 replies; 3+ messages in thread
From: Budi @ 2019-05-09  4:22 UTC (permalink / raw)
  To: help-gnu-emacs

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 ?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-09 23:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-09  4:22 How to clipboard copy emacs help text by user-made interactive function kill-ring-save Budi
2019-05-09  5:36 ` Emanuel Berg
2019-05-09 23:34 ` Bruno Barbier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).