emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A simple implementation of context-sensitive keys


From: Tassilo Horn
Subject: Re: A simple implementation of context-sensitive keys
Date: Thu, 11 Sep 2008 16:22:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

Hi!

>> Currently the problem of which minor mode gets the key press is
>> resolved just by the corresponding minor mode's position in
>> minor-mode-map-alist.  The first one gets it.
>
> Eh, and maybe I should have added that it is easier to understand what
>I am talking about after looking here:
>
>   (info "(elisp) Searching Keymaps")

So I guess a first step into the right direction would be to enhance
`describe-key' that it doesn't stop if KEY is found, but to list the
shadowed commands, too.  Something like

,----
| TAB (translated from <tab>) runs the command message-tab, which is an
| interactive compiled Lisp function in
| `/usr/share/emacs/23.0.60/lisp/gnus/message.el'.
| 
| It is bound to TAB in `message-mode-map'.  <== This is new
| 
| (message-tab)
| 
| Complete names according to `message-completion-alist'.
| Execute function specified by `message-tab-body-function' when not in
| those headers.
| 
| It shadows the following commands:         <== This is new
| 
|   `foo'    (bound to TAB in `foo-mode-map')
|   `bar'    (bound to TAB in `bar-mode-map')
|   ...
`----

Bye,
Tassilo
-- 
A child of five could understand this! Fetch me a child of five!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]