[gnu.emacs.bug] New bug in menus under X11

heiser@iis.UUCP (Gernot Heiser) (11/09/89)

I just brought up emacs 18.55 on a sun 3/280. As I quickly found out, the most
annoying bug of versions 18.53, 18.54 has been replaced with a new one.

In the old version, the emacs window was not properly refreshed after a pop-up
menu had been shown, the refresh was only completed when a new event was
handled, e.g. pressing the shift key of leaving and re-entering the window
with the mouse.

In the new version this has been fixed - at a price: now, when a pop-up menu is
shown, a mouse key must be clicked to activate a menu entry, just releasing the
button that popped up the menu does nothing any more. However, this second mouse
click is afterwards handled as if it had occured without any menu being
involved!

An example for illustration: I have x-button-c-middle bound to a function which
allows to select a buffer from a pop-up menu, while x-button-middle is bound to
a function yank-at-mouse. If I now use \C-middle-button to pop up the menu,
releasing the button does nothing. If I press the middle button on one of the
menu entries, the correct buffer is shown, but AFTERWARDS the yank-at-mouse is
performed.

What I can do is to keep the contol key pressed down while releasing and
re-pressing the middle button. This will lead to the desired behaviour - but is
still annoying, since you are bound to forget to keep the control key down.
-- 
Gernot Heiser                   Phone:       +41 1/256 23 48
Integrated Systems Laboratory   CSNET/ARPA:  heiser%iis.ethz.ch@relay.cs.net
ETH Zuerich                     UUCP (new):  heiser@iis.uucp
CH-8092 Zuerich, Switzerland    UUCP (old):  {uunet,mcvax,...}!iis!heiser