all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.