[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: |
Sat, 13 Jul 2024 10:12:51 -0400 |
On Fri, Jul 12, 2024 at 3:30 PM <tomas@tuxteam.de> wrote:
> On Fri, Jul 12, 2024 at 09:57:49PM +0700, Yuri Khan wrote:
> > On Fri, 12 Jul 2024 at 21:41, Pierre Rouleau <prouleau001@gmail.com>
> wrote:
> >
> > > The code can determine if Emacs is running a GUI mode or in a terminal
> mode.
> > > In GUI mode it would assume that everything is possible.
> > > In terminal mode the issue is being able to distinguish
> > > whether the key sequence can be bound or not.
> >
> > Even that is in general not solvable. Given an Emacs daemon, you can
> > connect to it with a GUI client and a terminal-based client, and they
> > will coexist peacefully.
>
> That just means that the function needs also the frame as input param,
> no?
>
>
Interesting thought.
In the scenario I have to deal with (described in a previous mail)
I could use both display-graphic-p and the
frame type inside a hook executing to
check if the key clash exists for the buffer.
At the moment I only do that at initialization time.
That would allow identifying whether the key binding clash
situation is real (in the graphical frame), or otherwise
when the frame is a terminal based one.
But I still have the problem of being able to
determine if the key binding is accessible
or not when the frame is in terminal mode.
--
/Pierre
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, (continued)
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Yuri Khan, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, tomas, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Pierre Rouleau, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Pierre Rouleau, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Yuri Khan, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Pierre Rouleau, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, tomas, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?,
Pierre Rouleau <=
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, tomas, 2024/07/13
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Emanuel Berg, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Pierre Rouleau, 2024/07/13
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Robert Pluim, 2024/07/12
- Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Pierre Rouleau, 2024/07/12
Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode?, Stefan Monnier, 2024/07/16