[Top][All Lists]

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

mouse-2 on menu item yanks into current buffer

From: Drew Adams
Subject: mouse-2 on menu item yanks into current buffer
Date: Fri, 3 Mar 2006 20:56:47 -0800

emacs -q

select some text, so it can be yanked

open a menu-bar menu, and click mouse-2, instead of mouse-1, on any menu

The mouse-2 command is executed in the current buffer. In a text
buffer, the copied text is yanked. In dired, the file on the curren
line is opened.

This is a pernicious bug because:

1. It is easy to fall into, especially for newbies.

2. It is easy not to recognize that it has occurred - you must either
   watch the buffer-modified flag in the mode line or the region
   yanked must be big enough to be obvious.

This bug is apparently old - it occurs in Emacs 20 also.

In GNU Emacs (i386-mingw-nt5.1.2600)
 of 2005-06-26 on NONIQPC
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc
(3.3) --cflags -I../../jpeg-6b-3/include -I../../libpng-1.2.8/include -I../.
./tiff-3.6.1-2/include -I../../xpm-nox-4.2.0/include -I../../zlib-1.2.2/incl

reply via email to

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