* Is there an error in menu handling?
@ 2005-12-06 17:01 Lennart Borgman
2005-12-06 21:25 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2005-12-06 17:01 UTC (permalink / raw)
I tried to play a little bit with menus. Reading the example in "(elisp)
Menu Bar" it looked to me like I could do something like
(defconst bw-keymap (make-sparse-keymap "Window Resizing")
"Keymap used by `bw-window-resize-mode'.")
(define-key bw-keymap [menu-bar bw] (cons "Resize" (make-sparse-keymap
"Resize")))
(define-key bw-keymap [menubar bw balance] '("Balance Windows" .
bw-balance))
However that did not give the expected result. Indeed "Resize" was added
to the menubar, but opening that menu item just should two items in
bold, both saying "Resize".
Did I misread the documentation?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is there an error in menu handling?
2005-12-06 17:01 Is there an error in menu handling? Lennart Borgman
@ 2005-12-06 21:25 ` Stefan Monnier
2005-12-06 22:52 ` Lennart Borgman
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2005-12-06 21:25 UTC (permalink / raw)
Cc: Emacs Devel
> I tried to play a little bit with menus. Reading the example in "(elisp)
> Menu Bar" it looked to me like I could do something like
> (defconst bw-keymap (make-sparse-keymap "Window Resizing")
> "Keymap used by `bw-window-resize-mode'.")
> (define-key bw-keymap [menu-bar bw] (cons "Resize" (make-sparse-keymap
> "Resize")))
> (define-key bw-keymap [menubar bw balance] '("Balance Windows"
> . bw-balance))
1 - you don't use the bw-keymap variable.
2 - there's a typo: "menubar" vs "menu-bar"
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is there an error in menu handling?
2005-12-06 21:25 ` Stefan Monnier
@ 2005-12-06 22:52 ` Lennart Borgman
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2005-12-06 22:52 UTC (permalink / raw)
Cc: Emacs Devel
Stefan Monnier wrote:
>1 - you don't use the bw-keymap variable.
>
>
I should have said that it an entry for it is added to
emulation-mode-map-alists .
>2 - there's a typo: "menubar" vs "menu-bar"
>
>
Thanks ;-) It works now.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-06 22:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06 17:01 Is there an error in menu handling? Lennart Borgman
2005-12-06 21:25 ` Stefan Monnier
2005-12-06 22:52 ` Lennart Borgman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.