GNU bug report logs - #38642
'C-x RET c' gets stuck in universal-argument loop

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Mon, 16 Dec 2019 22:53:01 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#38642: closed ('C-x RET c' gets stuck in universal-argument loop)
Date: Fri, 20 Dec 2019 22:53:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 20 Dec 2019 17:52:17 -0500
with message-id <jwvpngin1a9.fsf-monnier+emacs <at> gnu.org>
and subject line Re: bug#38642: 'C-x RET c' gets stuck in universal-argument loop
has caused the debbugs.gnu.org bug report #38642,
regarding 'C-x RET c' gets stuck in universal-argument loop
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
38642: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38642
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 'C-x RET c' gets stuck in universal-argument loop
Date: Mon, 16 Dec 2019 23:56:08 +0200
emacs -Q
C-x RET c       ;; universal-coding-system-argument
RET             ;; accept default e.g. utf-8-unix
C-u C-b         ;; moves backwards 4 chars
C-b C-b C-b ...

Every C-b still moves backwards 4 chars because it gets stuck with an old
'prefix-arg' in the 'while' loop in 'universal-coding-system-argument'.

It gets out of this loop only on an error such as when point reaches
the beginning of the buffer that signals an error.

PS: this is the simplest reproducible case, but I found this bug
by trying to use 'C-x RET c C-u C-u M-x rgrep' that with two C-u prefixes
allows editing the grep command.


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 38642-done <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>,
 juri <at> linkov.net
Subject: Re: bug#38642: 'C-x RET c' gets stuck in universal-argument loop
Date: Fri, 20 Dec 2019 17:52:17 -0500
> Stefan, any ideas for how to fix this unintended consequence?

I installed a patch which seems to fix it.  We should rewrite this
function completely, but I tried to minimize the changes for now.


        Stefan



This bug report was last modified 5 years and 180 days ago.

Previous Next


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