unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9602: kbd macro does not evaluate its parameter
@ 2011-09-26  1:31 Le Wang
       [not found] ` <handler.9602.B.131700072132002.ack@debbugs.gnu.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Le Wang @ 2011-09-26  1:31 UTC (permalink / raw)
  To: 9602

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] 10+ messages in thread

end of thread, other threads:[~2013-02-14  8:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26  1:31 bug#9602: kbd macro does not evaluate its parameter Le Wang
     [not found] ` <handler.9602.B.131700072132002.ack@debbugs.gnu.org>
2011-09-26  1:47   ` bug#9602: Acknowledgement (kbd macro does not evaluate its parameter) Le Wang
2011-09-26  1:49 ` bug#9602: kbd macro does not evaluate its parameter Drew Adams
2011-09-26  8:01   ` Le Wang
2011-09-26  4:09 ` Stefan Monnier
2011-09-26  4:45   ` Leo
2011-09-26 13:43     ` Stefan Monnier
2011-09-26 15:52       ` Leo
2011-09-26 16:31         ` Stefan Monnier
2013-02-14  8:17   ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).