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

* Re: kbd macro does not evaluate its parameter
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Le Wang @ 2011-09-26  1:32 UTC (permalink / raw)
  To: GNU Emacs List

Oops.  Sorry, this was meant for the bug list.

On Mon, Sep 26, 2011 at 9:29 AM, Le Wang <l26wang@gmail.com> wrote:
> 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
>



-- 
Le



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

* Re: kbd macro does not evaluate its parameter
  2011-09-26  1:32 ` Le Wang
@ 2011-09-26  1:48   ` Le Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Le Wang @ 2011-09-26  1:48 UTC (permalink / raw)
  To: GNU Emacs List

Also it's not a bug.  Now that I've given it some closer thought.
Please don't reply to this.

On Mon, Sep 26, 2011 at 9:32 AM, Le Wang <l26wang@gmail.com> wrote:
> Oops.  Sorry, this was meant for the bug list.
>
> On Mon, Sep 26, 2011 at 9:29 AM, Le Wang <l26wang@gmail.com> wrote:
>> 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
>>
>
>
>
> --
> Le
>



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