On Fri, Jul 12, 2024 at 09:57:49PM +0700, Yuri Khan wrote: > On Fri, 12 Jul 2024 at 21:41, Pierre Rouleau 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? Cheers -- t