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

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

Re: How to write a self-insert-command-like command?


From: Michael Heerdegen
Subject: Re: How to write a self-insert-command-like command?
Date: Sat, 01 Aug 2015 15:28:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

> I want to have a command whose behavior will depend on the key used to
> invoke it, much like self-insert-command.  How to do that?  Is
> last-command-event the right tool for that, or is there a better one?

AFAICT, the (C) source code of `self-insert-command' uses `last-command-event',
too.


Michael.




reply via email to

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