GNU bug report logs - #30758
25.3; Cannot exit minibuffer with C-g when opening file or switching buffers

Previous Next

Package: emacs;

Reported by: Tim Fischbach <mail <at> timfischbach.de>

Date: Fri, 9 Mar 2018 16:23:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Merged with 26289, 29063

Found in versions 24.5, 25.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 30758 in the body.
You can then email your comments to 30758 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-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Fri, 09 Mar 2018 16:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Fischbach <mail <at> timfischbach.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 09 Mar 2018 16:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tim Fischbach <mail <at> timfischbach.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.3; Cannot exit minibuffer with C-g when opening file or switching
 buffers
Date: Fri, 09 Mar 2018 09:33:57 +0000
[Message part 1 (text/plain, inline)]
Hi!

I am facing the exact problem described in

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26289

on both Emacs 25.3.2 and 24.5.1 also via `emacs -Q`.
When running emacs inside the terminal via `emacs -nw` the problem does not
occur.

Regards,
Tim

In GNU Emacs 25.3.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-09-12 built on lcy01-32
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Ubuntu 16.04.3 LTS

Configured using:
 'configure --build=x86_64-linux-gnu --prefix=/usr
 '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
 '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
 --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
 '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
 --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
 --program-suffix=25 --with-modules --with-x=yes --with-x-toolkit=gtk3
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Important settings:
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
gui-get-primary-selection: No selection is available

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 87773 6169)
 (symbols 48 19852 0)
 (miscs 40 269 107)
 (strings 32 14685 4070)
 (string-bytes 1 425584)
 (vectors 16 12003)
 (vector-slots 8 436013 5055)
 (floats 8 166 28)
 (intervals 56 230 0)
 (buffers 976 18)
 (heap 1024 32330 891))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Fri, 09 Mar 2018 18:33:01 GMT) Full text and rfc822 format available.

Message #8 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tim Fischbach <mail <at> timfischbach.de>
Cc: 30758 <at> debbugs.gnu.org
Subject: Re: bug#30758: 25.3;
 Cannot exit minibuffer with C-g when opening file or switching buffers
Date: Fri, 09 Mar 2018 20:31:54 +0200
> From: Tim Fischbach <mail <at> timfischbach.de>
> Date: Fri, 09 Mar 2018 09:33:57 +0000
> 
> I am facing the exact problem described in 
> 
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26289
> 
> on both Emacs 25.3.2 and 24.5.1 also via `emacs -Q`. 
> When running emacs inside the terminal via `emacs -nw` the problem does not occur.

Thanks, but unless you can provide a reproducible recipe starting with
"emacs -Q", this report doesn't help us to find the reason and fix it,
exactly like bug#26289 didn't.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Sat, 10 Mar 2018 03:06:01 GMT) Full text and rfc822 format available.

Message #11 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Tim Fischbach <mail <at> timfischbach.de>
Cc: 30758 <at> debbugs.gnu.org
Subject: Re: bug#30758: 25.3;
 Cannot exit minibuffer with C-g when opening file or switching buffers
Date: Fri, 09 Mar 2018 22:05:05 -0500
unarchive 26289
reopen 26289
merge 30758 29063 26289
quit

Tim Fischbach <mail <at> timfischbach.de> writes:

> I am facing the exact problem described in 
>
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26289
>
> on both Emacs 25.3.2 and 24.5.1 also via `emacs -Q`. 
> When running emacs inside the terminal via `emacs -nw` the problem
> does not occur.

Do you see the same symptoms described in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29063#17

    I have also noticed that, with toggle-debug-on-quit on, just typing C-g
    while in the normal writing buffer will always send me to the debugger on
    only one line:

    Debugger entered--Lisp error: (quit)
      internal-timer-start-idle()

    This happens in the broken emacs only, and C-g here does nothing in the
    working emacs. Likewise, in the broken emacs, while I am highlighting text
    with C-space, C-g will 50% of the time cancel the highlight and 50% of the
    time open the above debugger on the timer start function.




Merged 26289 29063 30758. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 10 Mar 2018 03:06:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Mon, 12 Mar 2018 15:30:02 GMT) Full text and rfc822 format available.

Message #16 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Tim Fischbach <mail <at> timfischbach.de>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 30758 <at> debbugs.gnu.org
Subject: Re: bug#30758: 25.3; Cannot exit minibuffer with C-g when opening
 file or switching buffers
Date: Mon, 12 Mar 2018 12:48:54 +0000
[Message part 1 (text/plain, inline)]
1) emacs -Q
2) M-x
3) C-g

reproduces the error every time on my machine. Holding C-g for a couple of
seconds fixes the problem. Also Esc Esc Esc still works. Even C-S-g works,
even though describe-key translates it to C-g. I really think this might be
a problem with Ubuntu Unity somehow rebinding or blocking C-g.

Using toogle-debug-on-quit with my normal config, I was able to trigger

  Debugger entered--Lisp error: (quit)

without any further info or

  Debugger entered--Lisp error: (quit)
  read-event(nil t 2)
  sit-for(2)
  execute-extended-command(nil "toggle-debug-on-quit" nil)
  funcall-interactively(execute-extended-command nil "toggle-debug-on-quit" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

This was NOT reproducible with `emacs -Q`, though.

On Sat, 10 Mar 2018 at 04:05 Noam Postavsky <npostavs <at> gmail.com> wrote:

> unarchive 26289
> reopen 26289
> merge 30758 29063 26289
> quit
>
> Tim Fischbach <mail <at> timfischbach.de> writes:
>
> > I am facing the exact problem described in
> >
> >   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26289
> >
> > on both Emacs 25.3.2 and 24.5.1 also via `emacs -Q`.
> > When running emacs inside the terminal via `emacs -nw` the problem
> > does not occur.
>
> Do you see the same symptoms described in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29063#17
>
>     I have also noticed that, with toggle-debug-on-quit on, just typing C-g
>     while in the normal writing buffer will always send me to the debugger
> on
>     only one line:
>
>     Debugger entered--Lisp error: (quit)
>       internal-timer-start-idle()
>
>     This happens in the broken emacs only, and C-g here does nothing in the
>     working emacs. Likewise, in the broken emacs, while I am highlighting
> text
>     with C-space, C-g will 50% of the time cancel the highlight and 50% of
> the
>     time open the above debugger on the timer start function.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Mon, 12 Mar 2018 15:46:01 GMT) Full text and rfc822 format available.

Message #19 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Tim Fischbach <mail <at> timfischbach.de>
Cc: 30758 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#30758: 25.3;
 Cannot exit minibuffer with C-g when opening file or switching buffers
Date: Mon, 12 Mar 2018 11:42:36 -0400
Tim Fischbach wrote:

> I really think this might be a problem with Ubuntu Unity somehow
> rebinding or blocking C-g.

Searching finds:

https://askubuntu.com/questions/741657/unity-somehow-captures-controlg-from-emacs

   if I disable Show location of pointer for the mouse in
   gnome-tweak-tools, C-g is passed through correctly.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Mon, 12 Mar 2018 16:21:01 GMT) Full text and rfc822 format available.

Message #22 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Tim Fischbach <mail <at> timfischbach.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 30758 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#30758: 25.3; Cannot exit minibuffer with C-g when opening
 file or switching buffers
Date: Mon, 12 Mar 2018 16:20:31 +0000
[Message part 1 (text/plain, inline)]
Unfortunately that option was already disabled on my system. But it has to
be something like this.

Thanks

On Mon, 12 Mar 2018 at 16:43 Glenn Morris <rgm <at> gnu.org> wrote:

> Tim Fischbach wrote:
>
> > I really think this might be a problem with Ubuntu Unity somehow
> > rebinding or blocking C-g.
>
> Searching finds:
>
>
> https://askubuntu.com/questions/741657/unity-somehow-captures-controlg-from-emacs
>
>    if I disable Show location of pointer for the mouse in
>    gnome-tweak-tools, C-g is passed through correctly.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Mon, 12 Mar 2018 18:50:01 GMT) Full text and rfc822 format available.

Message #25 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Tim Fischbach <mail <at> timfischbach.de>
Cc: 30758 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> gmail.com>
Subject: Re: bug#30758: 25.3;
 Cannot exit minibuffer with C-g when opening file or switching buffers
Date: Mon, 12 Mar 2018 14:49:13 -0400
Tim Fischbach wrote:

> Unfortunately that option was already disabled on my system. But it has to
> be something like this.

Maybe try disabling any window manager keyboard shortcut that uses the
ctrl key?

BTW, just to be explicit, seems everyone reporting this uses Ubuntu 16.04.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Tue, 13 Mar 2018 01:13:02 GMT) Full text and rfc822 format available.

Message #28 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Tim Fischbach <mail <at> timfischbach.de>
Cc: Glenn Morris <rgm <at> gnu.org>, 30758 <at> debbugs.gnu.org
Subject: Re: bug#30758: 25.3;
 Cannot exit minibuffer with C-g when opening file or switching buffers
Date: Mon, 12 Mar 2018 21:12:17 -0400
Tim Fischbach <mail <at> timfischbach.de> writes:

> Unfortunately that option was already disabled on my system. But it
> has to be something like this.

Does describe-key-briefly (<f1> c C-g), or view-lossage (<f1> l) suggest
that Emacs can recognize the C-g, or does it see some other keystroke?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Tue, 13 Mar 2018 13:16:02 GMT) Full text and rfc822 format available.

Message #31 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Tim Fischbach <mail <at> timfischbach.de>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 30758 <at> debbugs.gnu.org
Subject: Re: bug#30758: 25.3; Cannot exit minibuffer with C-g when opening
 file or switching buffers
Date: Tue, 13 Mar 2018 13:14:45 +0000
[Message part 1 (text/plain, inline)]
Interesting. I did not know about view-lossage.

<f1> c C-g just briefly displays "Quit" and exits minibuffer. When running
"emacs -nw -Q" from a terminal, the same key is described correctly as
keyboard-quit.

After trying to exit C-x C-f with C-g, nothing shows up in view-lossage.
When I hold C-g for a couple of seconds, focus goes back to the buffer as
expected and "C-g [abort-recursive-edit]" shows up in view-lossage.

When hitting C-g while inside a buffer, view-lossage displays "C-g
[keyboard-quit]" correctly, though, which I would not expect if Ubuntu kept
Emacs from receiving keyboard events correctly.



On Tue, 13 Mar 2018 at 02:12 Noam Postavsky <npostavs <at> gmail.com> wrote:

> Tim Fischbach <mail <at> timfischbach.de> writes:
>
> > Unfortunately that option was already disabled on my system. But it
> > has to be something like this.
>
> Does describe-key-briefly (<f1> c C-g), or view-lossage (<f1> l) suggest
> that Emacs can recognize the C-g, or does it see some other keystroke?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30758; Package emacs. (Sun, 29 Sep 2019 15:11:02 GMT) Full text and rfc822 format available.

Message #34 received at 30758 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 30758 <at> debbugs.gnu.org, 26289 <at> debbugs.gnu.org,
 Tim Fischbach <mail <at> timfischbach.de>
Subject: Re: bug#30758: 25.3; Cannot exit minibuffer with C-g when opening
 file or switching buffers
Date: Sun, 29 Sep 2019 17:10:37 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> Do you see the same symptoms described in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29063#17

More information was requested, but no response was given within a
year, so I'm closing this bug report.  If the problem still exists,
please reopen this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 26289 <at> debbugs.gnu.org and joakim <joakim.saelemyr <at> rainfall.no> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 29 Sep 2019 15:11:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2019 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 171 days ago.

Previous Next


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