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

Stefan Monnier <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
BTW, two things I wonder about the overall design:

- Do we want to "merge" two different keymap bindings (say we have
  a metafunction bound to TAB in the global map and another metafunction
  bound to TAB in the local map), or do we want to force the use of the
  hook as the only way to multiplex a single key?

- If we evaluate the `:when` conditions during `access_keymap` (like we
  currently do for `menu-item`), then we don't want to allow
  side-effecting `:when`s, since those side-effects would be executed at
  an inopportune time (e.g. before we set `this-command` and run
  `pre-command-hook`).

While sleeping I thought of the following:

- Define some way to mark some commands as "metafunctions".
- When we lookup a (list of) keymap(s) and the command we found is
  marked as a "metafunction", we continue looking for further bindings
  and return a composite command made up of the metafunctions (plus
  potentially a final non-metafunction) found.


=== Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.