Re: On keybindings and the slow erosion of help's utility

Eli Zaretskii <[email protected]> Sun, 02 Aug 2026 18:27:03 +0300
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
> From: Stefan Monnier <[email protected]>
> Cc: Ihor Radchenko <[email protected]>,  [email protected],  [email protected]
> Date: Sun, 02 Aug 2026 10:42:04 -0400
> 
> >> 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.
> 
> This is indeed what some commands try to do nowadays, but it's hard to
> find the "next" binding in a reliable way.  It comes with some
> non-trivial problems:

I supposed that whatever infrastructure we add to make these problems
easier to solve will also be available to commands and to "C-h".  So
it is not clear to me why we need to also add some new type of a
keymap entry.