GNU bug report logs - #500
GTK Emacs stops reacting to keyboard events after cancelling menu by hitting Escape

Previous Next

Package: emacs;

Reported by: Andrey <pent <at> aparamon.msk.ru>

Date: Sun, 29 Jun 2008 11:05:06 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 500 in the body.
You can then email your comments to 500 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Andrey <pent <at> aparamon.msk.ru>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Andrey <pent <at> aparamon.msk.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: GTK Emacs stops reacting to keyboard events after cancelling menu by hitting Escape
Date: Sun, 29 Jun 2008 14:55:17 +0400
To reproduce:

0) Make sure you run GTK Emacs and the main menu is on.

1) Click on any main menu item. The drop-down menu with child items
   will appear.

2) Move mouse down so it is over one of the child items (but not
   separator).

3) Hit Escape to cancel the menu. The menu will disappear (it is the
   expected behavior).

4) Press any key. Nothing happens.

5) Click on Emacs buffer. Nothing happens. Emacs looks frozen.

To workaround:

Click on any main menu item and hit Escape *immediately*. Emacs is
back to life.

This bug is minor but may be very frustrating for novice users. I'm
ready to provide any additional info.

Good luck,
Andrey Paramonov

In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2008-04-27 on raven, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ru_RU.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: ESS Help

Minor modes in effect:
  TeX-PDF-mode: t
  csv-field-index-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <C-end> <C-up> <left> 
<C-backspace> <C-backspace> <C-backspace> <C-backspace> 
<C-backspace> <C-backspace> <C-backspace> <left> <C-backspace> 
r a n g e ( t i m e ( <C-right> ) <left> <left> a d 
<backspace> l l d a t a <return> ) <return> <C-up> 
<C-up> ) <return> <f6> <escape> <escape> <escape> <up> 
<up> <backspace> <down> <down> <return> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <up> <up> <backspace> <down> <return> 
<up> <up> <up> <up> <up> <up> <up> <down> <down> <down> 
<down> <down> <down> <backspace> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <backspace> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> C-c C-z <C-up> <C-up> <C-up> <C-up> ) <C-left> 
<C-left> <C-left> <C-left> <C-left> <C-left> <C-left> 
<C-left> r o w n a m e s ( <return> <C-up> <left> <left> 
<left> <right> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<return> <C-up> <f6> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <escape> <escape> 
<escape> C-c C-z <C-backspace> <C-backspace> <C-backspace> 
<C-backspace> <C-backspace> a s . z o o r e g <left> 
<left> C-c C-v <return> C-c C-v a s . z o o r e g <return> 
<f6> <f10> <help-echo> <help-echo> <help-echo> <down> 
<down> <down> <down> <down> <down> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <send-emacs-bug-report>

Recent messages:
History item: 1 [6 times]
History item: 2
History item: 1
History item: 2
History item: 3
History item: 4
History item: 1 [2 times]
Auto-saving...done
Loading emacsbug...done
call-interactively: End of buffer





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Jan Djärv  <jan.h.d <at> swipnet.se>
Cc: 500 <at> debbugs.gnu.org
Subject: Re: GTK Emacs stops reacting to keyboard events after cancelling menu by hitting Escape
Date: Wed, 23 Jul 2008 13:40:15 -0400
Hi Jan,

Could you take a look at this?

> 0) Make sure you run GTK Emacs and the main menu is on.
>
> 1) Click on any main menu item. The drop-down menu with child items
>    will appear.
>
> 2) Move mouse down so it is over one of the child items (but not
>    separator).
>
> 3) Hit Escape to cancel the menu. The menu will disappear (it is the
>    expected behavior).
>
> 4) Press any key. Nothing happens.
>
> 5) Click on Emacs buffer. Nothing happens. Emacs looks frozen.
>
> To workaround:
>
> Click on any main menu item and hit Escape *immediately*. Emacs is
> back to life.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #15 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 500 <at> debbugs.gnu.org
Subject: Re: GTK Emacs stops reacting to keyboard events after cancelling
 menu by hitting Escape
Date: Thu, 24 Jul 2008 10:47:19 +0200
Chong Yidong skrev:
> Hi Jan,
> 
> Could you take a look at this?

I've checked in a fix.  I haven't kept up with Emacs, it has been a busy
summer, and on top of that I broke my hand.  So if you can put this bug in its
proper state, I'd be greatful.  I'll get back into it in the fall.

	Jan D.

> 
>> 0) Make sure you run GTK Emacs and the main menu is on.
>>
>> 1) Click on any main menu item. The drop-down menu with child items
>>    will appear.
>>
>> 2) Move mouse down so it is over one of the child items (but not
>>    separator).
>>
>> 3) Hit Escape to cancel the menu. The menu will disappear (it is the
>>    expected behavior).
>>
>> 4) Press any key. Nothing happens.
>>
>> 5) Click on Emacs buffer. Nothing happens. Emacs looks frozen.
>>
>> To workaround:
>>
>> Click on any main menu item and hit Escape *immediately*. Emacs is
>> back to life.





Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Andrey <pent <at> aparamon.msk.ru>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #20 received at 500-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 500-done <at> debbugs.gnu.org
Subject: Re: GTK Emacs stops reacting to keyboard events after cancelling menu by hitting Escape
Date: Thu, 24 Jul 2008 09:13:01 -0400
Jan Djärv <jan.h.d <at> swipnet.se> writes:

> I've checked in a fix.  I haven't kept up with Emacs, it has been a busy
> summer, and on top of that I broke my hand.  So if you can put this bug in its
> proper state, I'd be greatful.  I'll get back into it in the fall.

Thanks very much.  Closing the bug.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #25 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: 500 <at> debbugs.gnu.org
Cc: jan.h.d <at> swipnet.se, rfrancoise <at> debian.org
Subject: Things have become considerably worse
Date: Sun, 27 Jul 2008 20:48:38 +0200
reopen 500
thanks

Hi,

it seems that the fix for this bug was not correct, since things have
become considerably worse since it was installed.  I observe that

- pressing F10 ESC leads to the cursor being lost
- pressing F10 -> Edit -> Paste from kill menu -> ESC leads to the
  cursor being lost and the Edit menu being highlighted.

In both cases the only way back to a sane state is to temporarily
activate the menubar with the mouse.

In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-07-27 on debian, modified by Debian
 (emacs-snapshot package, version 1:20080727-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Message

Minor modes in effect:
  shell-dirtrack-mode: t
  mml-mode: t
  diff-auto-refine-mode: t
  gnus-message-citation-mode: t
  display-time-mode: t
  auto-image-file-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t




bug reopened, originator not changed. Request was from Sven Joachim <svenjoac <at> gmx.de> to control <at> emacsbugs.donarmstrong.com. (Sun, 27 Jul 2008 19:00:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #32 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Sven Joachim <svenjoac <at> gmx.de>, 500 <at> debbugs.gnu.org
Subject: Re: Things have become considerably worse
Date: Mon, 28 Jul 2008 09:18:20 +0200
Sven Joachim skrev:
> reopen 500
> thanks
> 
> Hi,
> 
> it seems that the fix for this bug was not correct, since things have
> become considerably worse since it was installed.  I observe that
> 
> - pressing F10 ESC leads to the cursor being lost
> - pressing F10 -> Edit -> Paste from kill menu -> ESC leads to the
>   cursor being lost and the Edit menu being highlighted.

Please try again and let us know if it is correct now.

	Jan D.

> 
> In both cases the only way back to a sane state is to temporarily
> activate the menubar with the mouse.
> 
> In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
>  of 2008-07-27 on debian, modified by Debian
>  (emacs-snapshot package, version 1:20080727-1)
> Windowing system distributor `The X.Org Foundation', version 11.0.10402000
> configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''
> 
> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: C
>   value of $LC_CTYPE: nil
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: de_DE.UTF-8
>   value of $XMODIFIERS: nil
>   locale-coding-system: utf-8-unix
>   default-enable-multibyte-characters: t
> 
> Major mode: Message
> 
> Minor modes in effect:
>   shell-dirtrack-mode: t
>   mml-mode: t
>   diff-auto-refine-mode: t
>   gnus-message-citation-mode: t
>   display-time-mode: t
>   auto-image-file-mode: t
>   show-paren-mode: t
>   tooltip-mode: t
>   mouse-wheel-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   global-auto-composition-mode: t
>   auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   temp-buffer-resize-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>   abbrev-mode: t





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #37 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 500 <at> debbugs.gnu.org
Subject: Re: Things have become considerably worse
Date: Mon, 28 Jul 2008 17:06:54 +0200
On 2008-07-28 09:18 +0200, Jan Djärv wrote:

> Please try again and let us know if it is correct now.

It's definitely better now, thanks.  The only thing that still doesn't
work (and never did, AFAIK) is to open the menubar with F10 and then
select a menu entry with the mouse.

But I wouldn't mind if you closed the bug anyway.

Regards,
        Sven




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #42 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Sven Joachim <svenjoac <at> gmx.de>
Cc: 500 <at> debbugs.gnu.org
Subject: Re: Things have become considerably worse
Date: Tue, 29 Jul 2008 11:28:18 +0200
Sven Joachim skrev:
> On 2008-07-28 09:18 +0200, Jan Djärv wrote:
> 
>> Please try again and let us know if it is correct now.
> 
> It's definitely better now, thanks.  The only thing that still doesn't
> work (and never did, AFAIK) is to open the menubar with F10 and then
> select a menu entry with the mouse.
> 

I've made a change for that.  All your cases work here, but please test it again.

This fix should go in to the 22.x branch, if there is to be another release
from that branch.

Thanks,

	Jan D.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#500; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #47 received at 500 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 500 <at> debbugs.gnu.org
Subject: Re: Things have become considerably worse
Date: Tue, 29 Jul 2008 19:04:26 +0200
On 2008-07-29 11:28 +0200, Jan Djärv wrote:

> Sven Joachim skrev:
>> It's definitely better now, thanks.  The only thing that still doesn't
>> work (and never did, AFAIK) is to open the menubar with F10 and then
>> select a menu entry with the mouse.
>> 
>
> I've made a change for that.  All your cases work here, but please test it again.

Works perfectly now, thank you very much. :-)

Cheers,
       Sven




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Andrey <pent <at> aparamon.msk.ru>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #52 received at 500-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 500-done <at> debbugs.gnu.org
Subject: Re: Things have become considerably worse
Date: Wed, 30 Jul 2008 09:58:49 -0400
> I've made a change for that.  All your cases work here, but please
> test it again.
>
> This fix should go in to the 22.x branch, if there is to be another
> release from that branch.

I've backported the fix into the branch.  Thanks.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 27 Aug 2008 14:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 300 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.