Subject: bug#6944: closed (Re: bug#6944: Paste in Edit menu not active at start)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 30 Aug 2010 18:10:03 +0000

Your bug report

#6944: Paste in Edit menu not active at start

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
6944: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6944
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#6944: Paste in Edit menu not active at start
From: Eli Zaretskii <[email-masked]>
To: Chong Yidong <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Mon, 30 Aug 2010 21:12:26 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Chong Yidong <[email-masked]>
> Cc: Lennart Borgman <[email-masked]>, [email-masked]
> Date: Mon, 30 Aug 2010 13:37:52 -0400
> 
> Eli Zaretskii <[email-masked]> 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.

Subject: Paste in Edit menu not active at start
From: Lennart Borgman <[email-masked]>
To: Emacs Bugs <[email-masked]>
Date: Mon, 30 Aug 2010 12:32:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

After starting Emacs with "emacs -Q" the "Paste" alternative is not
active in the menu even though C-y works.

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-08-10
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'