Re: On keybindings and the slow erosion of help's utility
Ihor Radchenko <[email protected]> Sun, 02 Aug 2026 10:46:38 +0000
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <87jyq87qbw.fsf@localhost> |
Eli Zaretskii <[email protected]> writes: >> Let's consider a simple case. >> We want to bind C-k in foo-mode-map but only on specific lines in file. >> When the point is elsewhere, we just want Emacs to call whatever is >> bound to C-k as if C-k in foo-mode-map were not bound at all. >> How would you do it with a command? > > 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? -- 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>