unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* kbd macro does not evaluate its parameter
@ 2011-09-26  1:29 Le Wang
  2011-09-26  1:32 ` Le Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Le Wang @ 2011-09-26  1:29 UTC (permalink / raw)
  To: GNU Emacs List

From stackoverflow:
http://stackoverflow.com/questions/7549628/whats-wrong-with-the-following-unbind-script/7549825#7549825

User tries:

  (dolist (abcc '("C-a" "C-b"))
    (global-unset-key (kbd abcc)))

Which fails.

(defmacro kbd (keys)
  "Convert KEYS to the internal Emacs key representation.
KEYS should be a string constant in the format used for
saving keyboard macros (see `edmacro-mode')."
  (read-kbd-macro keys))

kbd should evaluate its parameter before calling the read-kbd-macro
function.  Its parameter types should all be self evaluating.

-- 
Le



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-26  1:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26  1:29 kbd macro does not evaluate its parameter Le Wang
2011-09-26  1:32 ` Le Wang
2011-09-26  1:48   ` Le Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).