unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System)
To: David Reitter <reitter@cmu.edu>
Subject: bug#2534: marked as done (NS: clipboard-kill-ring-save and  clipboard-yank etc. not available)
Date: Mon, 04 May 2009 16:35:09 +0000	[thread overview]
Message-ID: <handler.2534.D2534.124145447218559.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 185186C2-A6C1-4BD8-8F42-A2A9D003D134@gmail.com

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]


Your message dated Mon, 4 May 2009 12:27:46 -0400
with message-id <1BFB2DB5-04E2-4EF2-9576-A0016127D9A3@cmu.edu>
and subject line fixed
has caused the Emacs bug report #2534,
regarding NS: clipboard-kill-ring-save and clipboard-yank etc. not available
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2534: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2534
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 7718 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 1244 bytes --]

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


[-- Attachment #2.1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

[-- Attachment #3: Type: message/rfc822, Size: 1944 bytes --]

From: David Reitter <reitter@cmu.edu>
To: 2534-done@emacsbugs.donarmstrong.com
Subject: fixed
Date: Mon, 4 May 2009 12:27:46 -0400
Message-ID: <1BFB2DB5-04E2-4EF2-9576-A0016127D9A3@cmu.edu>

fixed by removing the apparently obsolete code in term/ns-win.el that  
deletes these functions


      reply	other threads:[~2009-05-04 16:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1BFB2DB5-04E2-4EF2-9576-A0016127D9A3@cmu.edu>
2009-03-02  3:13 ` bug#2534: NS: clipboard-kill-ring-save and clipboard-yank etc. not available David Reitter
2009-05-04 16:35   ` Emacs bug Tracking System [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=handler.2534.D2534.124145447218559.ackdone@emacsbugs.donarmstrong.com \
    --to=owner@emacsbugs.donarmstrong.com \
    --cc=reitter@cmu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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