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

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

function keys in macro


From: Emanuel Berg
Subject: function keys in macro
Date: Sat, 23 Nov 2013 16:10:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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!

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


reply via email to

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