[Top][All Lists]

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

Re: Debugging a seldom seen bug (C-g with Ido)

From: Stefan Monnier
Subject: Re: Debugging a seldom seen bug (C-g with Ido)
Date: Tue, 18 Jan 2022 14:59:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> I'm using Ido for all my completion needs, and occasionally when i'm
> trying to abort an active ido-find-file command with C-g, i'm getting
> "[Quit]" appended to the minibuffer, rather than the operation being
> aborted.  As if the keyboard-quit was processed while some buffer other
> than minibuffer was current.
> It happens rather rarely and i failed to reliably reproduce it following
> the script from view-lossage.

It's probably timing-dependent.  My guess is that it happens when you it
`C-g` while Emacs is running some ELisp code and it processes the `C-g` as
a (signal 'quit), like what happens when you hit `C-g` to interrupt
execution of ELisp code, rather than by looking it up in the keymaps.

You can try and debug this with (setq debug-on-error t debug-on-quit t)

This setting can be rather annoying, tho (it will bring up a debugger
buffer every time you interrupt ELisp execution with `C-g`), but if you
hit the problem often enough it might be sufficient to catch the bugger

Feel free to send the resulting backtrace here (along with
a description of what you were doing and what you remember seeing on
screen shortly before the problem).


reply via email to

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