--- Begin Message ---
Subject: |
'C-x RET c' gets stuck in universal-argument loop |
Date: |
Mon, 16 Dec 2019 23:56:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
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.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#38642: 'C-x RET c' gets stuck in universal-argument loop |
Date: |
Fri, 20 Dec 2019 17:52:17 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> 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
--- End Message ---