GNU bug report logs -
#78916
31.0.50; C-g fails to exit loop
Previous Next
Full log
View this message in rfc822 format
> From: Richard Stallman <rms <at> gnu.org>
> Cc: eliz <at> gnu.org, 78916 <at> debbugs.gnu.org, kupfer <at> rawbw.com
> Date: Tue, 01 Jul 2025 22:10:44 -0400
>
> C-g and C-] are intentionally different. C-g quits out of commands,
> while C-] exis a recursive edit. The two commands exist because
> they are different, and both useful.
That is true in general, but we are talking about the effects of these
two inside query-replace, where they both are bound to the same
function.
> We want to fix the bug that affects C-g. But what should C-] do here?
>
> Its definition is to quit out of the innermos recursive edit.
> But I don't think there is a recursive edit going on in this example.
> query-replace-regexp doesn't use a recursive edit to read
> the user's input.
>
> Quitting out of the current command seems like a reaosnable think
> for C-] to do when there is no recursive edit in progress.
Exactly. So in this case C-g and C-] are supposed to have the same
effect, I think.
This bug report was last modified 25 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.