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

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

Re: Does code exist to check if a key sequence is valid for Emacs runnin


From: Pierre Rouleau
Subject: Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?
Date: Fri, 19 Jul 2024 09:31:16 -0400

On Tue, Jul 16, 2024 at 10:44 PM Stefan Monnier via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:

> > Does Emacs already have a predicate function that can be used to check if
> > the specified key sequence is valid for Emacs running in terminal mode?
>
> Note the same problem exists under GUIs, where Emacs does not offer
> a way to test whether a given ELisp event can be generated by your input
> devices.
>
> So, the best you can do is to use heuristics about what you think is
> "usually possible" and "usually impossible".  I don't know of any ELisp
> package offering such a functionality yet.
>
>
Yep,  that's what I'm doing.

Merci

-- 
/Pierre


reply via email to

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