bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14206: 24.3.50; doc string of `execute-kbd-macro'


From: Kevin Rodgers
Subject: bug#14206: 24.3.50; doc string of `execute-kbd-macro'
Date: Sat, 08 Feb 2014 08:45:44 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

On 2/8/14 4:59 AM, Lars Ingebrigtsen wrote:
"Drew Adams"<drew.adams@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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]