emacs-devel
[Top][All Lists]
Advanced

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

Is there an error in menu handling?


From: Lennart Borgman
Subject: Is there an error in menu handling?
Date: Tue, 06 Dec 2005 18:01:49 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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?




reply via email to

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