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

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

Re: function keys in macro


From: Jambunathan K
Subject: Re: function keys in macro
Date: Mon, 25 Nov 2013 18:14:58 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

M-x global-set-key (do whatever Emacs asks you to do)

M-x list-command-history

I see this:

    (global-set-key [27 f2] (quote ignore))

I am using ESC and not Alt (as seen on my keyboard).  Alt-F2 opens a
"Run Program" for me here.

Emanuel Berg <address@hidden> writes:

> I tried so many ways to include one of the function
> keys in a macro, like:
>
> (fset 'F2 (kbd "M-<f2>"))
> (fset 'F2 (kbd "<M-f2>"))
> (fset 'F2 [(meta f2)])
> (fset 'F2 [M-f2])
> ;; and more...
>
> and then (after either of the above)
>
> (execute-kbd-macro (symbol-function 'F2))
>
> But then I always get:
>
> "Keyboard macro terminated by a command ringing the bell"
>
> But it works for the non-F* keys so there has to be
> something with those that breaks it.
>
> Thanks!



reply via email to

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