GNU bug report logs - #64138
28.2; C-x ) won't accept the universal argument

Previous Next

Package: emacs;

Reported by: Al Petrofsky <al <at> petrofsky.org>

Date: Sat, 17 Jun 2023 23:49:02 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Al Petrofsky <al <at> petrofsky.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 64138 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#64138: 28.2; C-x ) won't accept the universal argument
Date: Sun, 18 Jun 2023 07:00:44 -0400
[Message part 1 (text/plain, inline)]
> > The C-u C-x ) should complete the macro definition and then execute
> > the macro three times

> These commands always required a numeric prefix argument

The kmacro-end-macro command has always used the wrong interactive
spec, but C-u C-x ) worked in Emacs 1.9 through 21.4, when C-x ) was
bound to end-kbd-macro, which has always used "p".

> These commands always required a numeric prefix argument, and that
> is how they are documented.  So just "C-u" is invalid, you should
> use "C-u 4" instead.

Hmm, kmacro-end-macro's doc string copied this paragraph verbatim from
end-kbd-macro:

    With numeric arg, repeat macro now that many times,
    counting the definition just completed as the first repetition.
    An argument of zero means repeat until error.

So you're saying that end-kbd-macro was always documented wrong, and
should have pointed out that C-u works?  I take the manual to be
saying that C-u meaning C-u 4 is the norm, and it is the functions
that are exceptions to that norm that need to clearly document that
exception:

   A few commands treat a plain ‘C-u’ differently from an ordinary
   argument.  A few others may treat an argument of just a minus sign
   differently from an argument of −1.  These unusual cases are described
   when they come up; they exist to make an individual command more
   convenient, and they are documented in that command’s documentation
   string.
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 336 days ago.

Previous Next


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