unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 38642@debbugs.gnu.org
Subject: bug#38642: 'C-x RET c' gets stuck in universal-argument loop
Date: Mon, 16 Dec 2019 23:56:08 +0200	[thread overview]
Message-ID: <87a77sgi3r.fsf@mail.linkov.net> (raw)

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.





             reply	other threads:[~2019-12-16 21:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-16 21:56 Juri Linkov [this message]
2019-12-16 23:07 ` bug#38642: 'C-x RET c' gets stuck in universal-argument loop Andreas Schwab
2019-12-17 16:11   ` Eli Zaretskii
2019-12-20 22:52     ` Stefan Monnier
2019-12-21  7:10       ` Eli Zaretskii
2019-12-23 21:09         ` Stefan Monnier
2020-01-19 22:11         ` Stefan Monnier
2020-01-20 16:24           ` Eli Zaretskii
2020-01-20 17:01             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a77sgi3r.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=38642@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).