Re: On keybindings and the slow erosion of help's utility
Eli Zaretskii <[email protected]> Sun, 02 Aug 2026 14:31:01 +0300
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
> From: Ihor Radchenko <[email protected]> > Cc: [email protected], [email protected], [email protected] > Date: Sun, 02 Aug 2026 11:07:49 +0000 > > Eli Zaretskii <[email protected]> writes: > > >> > The command would test if point is on one of those specific lines, and > >> > if not, call the binding of C-k in the "next" keymap in effect in the > >> > buffer. > >> > >> How to determine "next" keymap? > > > > Using the functions described in "(elisp) Functions for Key Look up". > > > > Basically, using the same methods as you intended this new feature to > > use "to call whatever is bound to C-k as if C-k in foo-mode-map were > > not bound at all". If Emacs can do that, so can a Lisp program, or > > what am I missing? > > I still fail to see how to do it. Let's start with keymap-global-look up. If it won't find "whatever is bound to C-k as if C-k in foo-mode-map were not bound at all", please explain why. > Consider that the command in question may be in foo-mode-map, but > may also be in another keymap (e.g. bound by user). I don't think I understand why this is important for the purposes of this discussion. What I wrote below doesn't use the fact that the binding is in foo-mode-map, AFAICT.