GNU bug report logs - #22107
this-command-keys no longer returns prefix argument

Previous Next

Package: emacs;

Reported by: bruce.connor.am <at> gmail.com

Date: Mon, 7 Dec 2015 15:43:02 UTC

Severity: normal

Tags: fixed

Merged with 22111

Found in versions 25.0.50, 25.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 22107 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 22107 <at> debbugs.gnu.org
Subject: Re: bug#22107: 25.1; Wrong docstring for this-single-command-keys
Date: Mon, 07 Dec 2015 13:10:40 -0500
Artur Malabarba wrote:

> The docstring says:
>
> Unlike 'this-command-keys', this function's value
> does not include prefix arguments.
>
> However, the function 'this-command-keys' also does not seem to return
> prefix arguments.

When you find something like that, sadly your first thought should be
"someone's broken something" rather than "the doc is wrong".
It works as documented in 24.5 and earlier.

IMO the example from the Elisp manual is more informative:

    (this-command-keys)
    ;; Now use `C-u C-x C-e' to evaluate that.
      => "^U^X^E"




This bug report was last modified 4 years and 227 days ago.

Previous Next


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