From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Is there an error in menu handling?
Date: Tue, 06 Dec 2005 16:25:40 -0500 [thread overview]
Message-ID: <jwvslt5ncjy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4395C3FD.5040401@student.lu.se> (Lennart Borgman's message of "Tue, 06 Dec 2005 18:01:49 +0100")
> 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
next prev parent reply other threads:[~2005-12-06 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-06 17:01 Is there an error in menu handling? Lennart Borgman
2005-12-06 21:25 ` Stefan Monnier [this message]
2005-12-06 22:52 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvslt5ncjy.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).