[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-l while in menu?
From: |
Stefan Monnier |
Subject: |
Re: C-l while in menu? |
Date: |
Tue, 23 Apr 2002 10:11:08 -0400 |
> BTW, I think most of this logic be implemented in lisp if we
> just had two built-in functions like
>
> (menu-bar-item-matching-p key) -> returns t if menu starting with KEY exists
> (open-menu-bar-item-matching key) -> opens that menu.
>
> Then, in a menu-accell minor mode, we could have code and bindings like
>
> (defun menu-accell-check-item ()
> (menu-bar-item-matching-p (this-command-key))
>
> (defun menu-accell-open-item ()
> (interactive)
> (open-menu-bar-item-matching (this-command-key)))
>
> (defcustom menu-accell-modifiers '(meta))
>
> ... for KEY in ?a to ?z do ...
> (define-key menu-accell-map
> (vector (append menu-accell-modifiers (list key))) ;; eg M-f
> '(menu-item "accell" menu-accell-open-item
> :filter menu-accell-check-item))
Looks perfect. Could be just a minor mode.
Stefan
- Re: C-l while in menu?, (continued)
- Re: C-l while in menu?, Ben Wing, 2002/04/24
- Re: C-l while in menu?, Simon Josefsson, 2002/04/24
- Re: C-l while in menu?, Stephen J. Turnbull, 2002/04/24
- Re: C-l while in menu?, Kai Großjohann, 2002/04/24
- Re: C-l while in menu?, Stephen J. Turnbull, 2002/04/24
- Re: C-l while in menu?, Kai Großjohann, 2002/04/24
- Re: C-l while in menu?, Hrvoje Niksic, 2002/04/24
- Re: C-l while in menu?, Stefan Monnier, 2002/04/24
- Re: C-l while in menu?, Eli Zaretskii, 2002/04/24
- Re: C-l while in menu?, Robert J. Chassell, 2002/04/23
- Re: C-l while in menu?,
Stefan Monnier <=
- Re: C-l while in menu?, Ben Wing, 2002/04/24
- Re: C-l while in menu?, Kai Großjohann, 2002/04/24
- Re: C-l while in menu?, Richard Stallman, 2002/04/25
- Re: C-l while in menu?, Stephen J. Turnbull, 2002/04/25
- Re: C-l while in menu?, Kai Großjohann, 2002/04/25
- Re: C-l while in menu?, Stephen J. Turnbull, 2002/04/25
- Re: C-l while in menu?, Richard Stallman, 2002/04/25
- Re: C-l while in menu?, Gerd Moellmann, 2002/04/26
- Re: C-l while in menu?, Eli Zaretskii, 2002/04/25
- Re: C-l while in menu?, Ben Wing, 2002/04/23