From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: dispatched randomly [key bindings reported incorrectly]
Date: Thu, 20 Jul 2006 16:16:07 -0600 [thread overview]
Message-ID: <e9ovdp$78j$1@sea.gmane.org> (raw)
In-Reply-To: <43wta8cimg.fsf@mo.msk.ru>
Ilya N. Golubev wrote:
> That is, `viper-vi-basic-minor-mode' is before `view-mode' in
> `minor-mode-map-alist'. Still `view-mode' bindings override those of
> `viper-vi-basic-minor-mode', both as reported by `describe-bindings'
> and as keys are actually dispatched. So bindings of ascii characters
> are highly inconsistent and appear random.
That is disturbing. But I just came across this in the Active Keymaps
node of the Emacs Lisp manual:
| Normally the active keymaps are the `keymap' property keymap, the
| keymaps of any enabled minor modes, the current buffer's local keymap,
| and the global keymap, in that order. Therefore, Emacs searches for
| each input key sequence in all these keymaps. Here is a pseudo-Lisp
| description of how this process works:
|
| (or (if overriding-terminal-local-map
| (FIND-IN overriding-terminal-local-map)
| (if overriding-local-map
| (FIND-IN overriding-local-map)
| (or (FIND-IN (get-text-property (point) 'keymap))
| (FIND-IN-ANY emulation-mode-map-alists)
| (FIND-IN-ANY minor-mode-overriding-map-alist)
| (FIND-IN-ANY minor-mode-map-alist)
| (if (get-text-property (point) 'local-map))
| (FIND-IN (get-text-property (point) 'local-map))
| (FIND-IN (current-local-map))))))
| (FIND-IN (current-global-map)))
|
| Here, the pseudo-function FIND-IN means to look up the key sequence in
| a single map, and FIND-IN-ANY means to search the appropriate keymaps
| from an alist. (Searching a single keymap for a binding is called "key
| lookup"; see *Note Key Lookup::.)
Does `C-h v overriding-local-map', `C-h v emulation-mode-map-alists', or
`C-h v minor-mode-overriding-map-alist' explain the behavior you see?
--
Kevin
prev parent reply other threads:[~2006-07-20 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-19 14:03 key bindings reported incorrectly Ilya N. Golubev
2006-07-20 17:04 ` dispatched randomly [key bindings reported incorrectly] Ilya N. Golubev
2006-07-20 22:16 ` Kevin Rodgers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e9ovdp$78j$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).