GNU bug report logs -
#14206
24.3.50; doc string of `execute-kbd-macro'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 15 Apr 2013 00:39:01 UTC
Severity: minor
Found in version 24.3.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 2/8/14 4:59 AM, Lars Ingebrigtsen wrote:
> "Drew Adams"<drew.adams <at> oracle.com> writes:
>
>> The doc string is misleading, especially this part: "as string of editor
>> command characters". Presumably what is meant is as a sequence of
>> command chars (better - a sequence of events). Compare the Elisp manual
>> description, which explicitly mentions that MACRO can be a string or a
>> vector (or a symbol with a function value).
>
> Uhm...
>
> (defun foo () "foo")
>
> (execute-kbd-macro 'foo)
>
> ->
>
> Debugger entered--Lisp error: (error "Keyboard macros must be strings or vectors")
> execute-kbd-macro(foo)
> eval((execute-kbd-macro (quote foo)) nil)
>
> (execute-kbd-macro "foo")
> -> foo
>
> (execute-kbd-macro ["f"])
> ->
> After 0 kbd macro iterations: undefined: Keyboard macro terminated by a command ringing the bell
>
> What kind of vector is this talking about?
A vector of keyboard events: (execute-kbd-macro [?f ?o ?o])
> It's kinda confusing all over.
--
Kevin Rodgers
Denver, Colorado, USA
This bug report was last modified 3 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.