[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#2534: NS: clipboard-kill-ring-save and clipboard-yank etc. not avail
bug#2534: NS: clipboard-kill-ring-save and clipboard-yank etc. not available
Sun, 1 Mar 2009 22:13:47 -0500
A number of functions such as `clipboard-kill-ring-save' are not
available in the NS port because term/ns-win.el unbinds them.
It took me a long time to figure out, because they are pre-loaded in
menu-bar.el and present in `load-history'.
In the interest of compatibility with existing Emacs 22 code, and also
with Emacs 23 code written on other platforms, these functions should
exist and do what they're documented to do.
Note that commands like `ns-copy-including-secondary' are bound to
menu bar items and to shortcuts such as Command-C (when CUA mode is
off), but they are not documented. I would happily write some
docstrings, but it isn't clear to me why one would always want to set
the secondary "cut buffer" in this situation.
;; Must come after keybindings.
(defun ns-copy-including-secondary ()
(buffer-substring (point) (mark t))))
(defun ns-paste-secondary ()
(insert (ns-get-cut-buffer-internal 'SECONDARY)))
Description: S/MIME cryptographic signature
- bug#2534: NS: clipboard-kill-ring-save and clipboard-yank etc. not available,
David Reitter <=