bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6944: Paste in Edit menu not active at start


From: Eli Zaretskii
Subject: bug#6944: Paste in Edit menu not active at start
Date: Mon, 30 Aug 2010 21:12:26 +0300

> From: Chong Yidong <cyd@stupidchicken.com>
> Cc: Lennart Borgman <lennart.borgman@gmail.com>, 6944@debbugs.gnu.org
> Date: Mon, 30 Aug 2010 13:37:52 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >   (define-key menu-bar-edit-menu [paste]
> >     `(menu-item ,(purecopy "Paste") yank
> >             :enable (and (or
> >                           ;; Emacs compiled --without-x doesn't have
> >                           ;; x-selection-exists-p.
> >                           (and (fboundp 'x-selection-exists-p)
> >                                (x-selection-exists-p))
> >                           kill-ring)
> >                          (not buffer-read-only))
> >
> > I can easily fix that with an MS-Windows specific change, but I'm
> > actually surprised we don't call (x-selection-exists-p 'CLIPBOARD)
> > here: isn't C-y supposed to yank from the clipboard, not from PRIMARY?
> > If we use 'CLIPBOARD, the code will work on Windows without any
> > changes.
> 
> Yes, please make the change.  This looks like an oversight.

Done.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]