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

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

[debbugs-tracker] bug#9602: closed (kbd macro does not evaluate its para


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#9602: closed (kbd macro does not evaluate its parameter)
Date: Thu, 14 Feb 2013 08:19:02 +0000

Your message dated Thu, 14 Feb 2013 03:17:58 -0500
with message-id <address@hidden>
and subject line Re: bug#9602: kbd macro does not evaluate its parameter
has caused the debbugs.gnu.org bug report #9602,
regarding kbd macro does not evaluate its parameter
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
9602: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9602
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: kbd macro does not evaluate its parameter Date: Mon, 26 Sep 2011 09:31:15 +0800
>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



--- End Message ---
--- Begin Message --- Subject: Re: bug#9602: kbd macro does not evaluate its parameter Date: Thu, 14 Feb 2013 03:17:58 -0500 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.3

Stefan Monnier wrote:

> Yes, kbd should have been defined as an alias of read-kbd-macro
> (i.e. a function) and mark it as pure so the byte-optimizer can
> precompute it when applicable.

That's been done.


--- End Message ---

reply via email to

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