|
From: | Emanuel Berg |
Subject: | Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode? |
Date: | Sat, 13 Jul 2024 01:44:46 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
Pierre Rouleau wrote: > The real reason I want to do that is to prevent reporting > key binding clashes in code that tries to use the same key > binding for 2 different global key bindings when that key > binding is not even possible because Emacs will not be able > to react to it. Can't you just branch on `display-graphic-p'? It is nil here but t in a GUI Emacs instance so should work. Another way is to just set some variable when you start it: $ HERE="some-system" emacs then branch on (getenv "HERE"). Sounds easier? -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |