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:20:06 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

F2 is a prefix key.


Global Bindings Starting With <f2>:
key             binding
---             -------

<f2> 2          2C-two-columns
<f2> b          2C-associate-buffer
<f2> s          2C-split
<f2> <f2>       2C-two-columns

So once you press f2 whatever that follows "completes" the prefix.

Emanuel Berg <embe8573@student.uu.se> 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]