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: Eli Zaretskii <eliz <at> gnu.org>
To: Al Petrofsky <al <at> petrofsky.org>
Cc: 64138 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: bug#64138: 28.2; C-x ) won't accept the universal argument
Date: Sun, 18 Jun 2023 14:05:11 +0300
> From: Al Petrofsky <al <at> petrofsky.org>
> Date: Sun, 18 Jun 2023 07:00:44 -0400
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 64138 <at> debbugs.gnu.org
> 
> > 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?

No, I'm saying that just "C-u" is not a "numeric argument".

> 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.

Yes, which is why it would be good to make these commands behave
closer to the general principle that the manual describes.  I'm just
saying that they never did until now.  Which is completely legitimate,
since what these commands do is not easily and obviously categorized
as repeatable operations: the argument makes them repeat some part of
what the command does.

Anyway, I think we agree that it would be a good extension, so no need
to argue any longer.  I'd just want to hear from Stefan whether we are
missing some subtlety here.




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.