Re: On keybindings and the slow erosion of help's utility
Ihor Radchenko <[email protected]> Sun, 02 Aug 2026 11:07:49 +0000
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <87h5lc7pcl.fsf@localhost> |
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. Consider that the command in question may be in foo-mode-map, but may also be in another keymap (e.g. bound by user). -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>