GNU bug report logs - #2534
NS: clipboard-kill-ring-save and clipboard-yank etc. not available

Previous Next

Packages: emacs, ns;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Mon, 2 Mar 2009 03:20:03 UTC

Severity: normal

Done: David Reitter <reitter <at> cmu.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2534 in the body.
You can then email your comments to 2534 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2534; Package emacs. (Mon, 02 Mar 2009 03:20:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 02 Mar 2009 03:20:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: NS: clipboard-kill-ring-save and clipboard-yank etc. not available
Date: Sun, 1 Mar 2009 22:13:47 -0500
[Message part 1 (text/plain, inline)]
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.



term/ns-win.el:

;; Must come after keybindings.

(fmakunbound 'clipboard-yank)
(fmakunbound 'clipboard-kill-ring-save)
(fmakunbound 'clipboard-kill-region)
(fmakunbound 'menu-bar-enable-clipboard)

...

(defun ns-copy-including-secondary ()
  (interactive)
  (call-interactively 'kill-ring-save)
  (ns-store-cut-buffer-internal 'SECONDARY
				(buffer-substring (point) (mark t))))
(defun ns-paste-secondary ()
  (interactive)
  (insert (ns-get-cut-buffer-internal 'SECONDARY)))

[smime.p7s (application/pkcs7-signature, attachment)]

bug reassigned from package `emacs' to `emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 02 Mar 2009 08:20:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2534; Package emacs,ns. (Wed, 04 Mar 2009 21:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adrian Robert <adrian.b.robert <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Wed, 04 Mar 2009 21:45:04 GMT) Full text and rfc822 format available.

Message #12 received at 2534 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Adrian Robert <adrian.b.robert <at> gmail.com>
To: 2534 <at> debbugs.gnu.org
Cc: David Reitter <david.reitter <at> gmail.com>
Subject: Re: NS: clipboard-kill-ring-save and clipboard-yank etc. not available
Date: Wed, 4 Mar 2009 23:40:19 +0200
> 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'.

To to you the truth I'm not sure ATM why these are unbound.  You  
could try commenting those lines out and seeing if anything bad happens.


> 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.

These are mainly for running under GNUstep in X windows, where the  
semantics of the two selection buffers have been confused for a long  
time, so it made sense just to throw things into both.  These  
commands are bound to keys and I believe discussed in the manual.  If  
you think they could be documented better, or should be enabled only  
under GNUstep, please go ahead with such changes.







Reply sent to David Reitter <reitter <at> cmu.edu>:
You have taken responsibility. (Mon, 04 May 2009 16:35:09 GMT) Full text and rfc822 format available.

Notification sent to David Reitter <david.reitter <at> gmail.com>:
bug acknowledged by developer. (Mon, 04 May 2009 16:35:09 GMT) Full text and rfc822 format available.

Message #17 received at 2534-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Reitter <reitter <at> cmu.edu>
To: 2534-done <at> debbugs.gnu.org
Subject: fixed
Date: Mon, 4 May 2009 12:27:46 -0400
fixed by removing the apparently obsolete code in term/ns-win.el that  
deletes these functions




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Tue, 02 Jun 2009 14:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.