emacs-devel
[Top][All Lists]
Advanced

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

Re: Is there an error in menu handling?


From: Stefan Monnier
Subject: Re: Is there an error in menu handling?
Date: Tue, 06 Dec 2005 16:25:40 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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




reply via email to

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