GNU bug report logs -
#77317
31.0.50; insert-kbd-macro RET produces elisp that does not work
Previous Next
Reported by: Adam Sjøgren <asjo <at> koldfront.dk>
Date: Thu, 27 Mar 2025 18:39:02 UTC
Severity: normal
Found in version 31.0.50
Done: Adam Sjøgren <asjo <at> koldfront.dk>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Date: Fri, 18 Apr 2025 00:57:37 +0200
> From: Adam Sjøgren via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> --- a/lisp/macros.el
> +++ b/lisp/macros.el
> @@ -49,7 +49,8 @@ macros--insert-vector-macro
> ;;;###autoload
> (defun insert-kbd-macro (macroname &optional keys)
> "Insert in buffer the definition of kbd macro MACRONAME, as Lisp code.
> -MACRONAME should be a symbol.
> +MACRONAME should be a symbol, if none is given the definition of
> +last-kdb-macro will be inserted.
I find this punctuation easier to read:
MACRONAME should be a symbol; if none is given, the definition of
`last-kdb-macro' will be inserted.
Bonus points for eliminating the passive tense:
MACRONAME should be a symbol; if none is given, the function inserts
the definition of `last-kdb-macro'.
Thanks.
P.S. I don't know this code well enough to tell whether the
documentation changes are factually correct/accurate. I hope Stefan
will comment on that.
This bug report was last modified 25 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.