[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mapping ESC to Cancel in terminal emacs
From: |
Stefan Monnier |
Subject: |
Re: Mapping ESC to Cancel in terminal emacs |
Date: |
Mon, 02 Feb 2015 12:07:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> Anyone know of a better way to put something like "\eb" back into
> unread-command-events, so it replicate the state before the event was
> read?
Before trying to answer such a question, you should ask yourself whether
there's a way to get what you want *without* needing to put things back
on unread-command-events (i.e. so the event is only consumed when you
need to consume it).
I think if you use key remapping, such as input-decode-map, you can get
what you want. Look for that variable in lisp/emulation/viper.el to see
how Viper handles VI's escape key, for example.
Stefan