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: Michael Heerdegen
Subject: Re: function keys in macro
Date: Tue, 26 Nov 2013 08:35:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> Keyboard macros are *not* intercepted by the tty:
>
> (fset 'Ml (kbd "M-l"))
> (execute-kbd-macro (symbol-function 'Ml))
>
> This will *not* take me to tty2 (if in tty1/Emacs), but
> will instead run `downcase-word', i.e., normal Emacs
> behaviour!
>
> Amazing! That means this whole idea must be dropped!

Indeed.  `execute-kbd-macro' just calls commands bound to the given
keys.  It's internal to Emacs, and something different from hitting that
key on your keyboard.  It is the same only when that key event is
received by Emacs.


Regards,

Michael.




reply via email to

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