From: Daniel Carvalho <idnael@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#4843: creating menus
Date: Sat, 31 Oct 2009 22:29:52 +0000 [thread overview]
Message-ID: <9e43f0e60910311529h5a53f9dck7aed3cdc115c9a35@mail.gmail.com> (raw)
hi
when I recently upgraded to Ubuntu 9.10 the elisp code to create menus
stop working.
Consider example in http://xahlee.org/emacs/elisp_menu.html
It creates the menu "MyMenu", but the menu itens inside it don't show!
The emacs version didn't change: GNU Emacs 22.2.1
Anyone else had this problem? how to solve it?
;; Creating a new menu pane in the menu bar to the right of “Tools” menu
(define-key-after
global-map
[menu-bar mymenu]
(cons "MyMenu" (make-sparse-keymap "hoot hoot"))
'tools )
;; Creating a menu item, under the menu by the id “[menu-bar mymenu]”
(define-key
global-map
[menu-bar mymenu nl]
'("Next Line" . next-line))
;; creating another menu item
(define-key
global-map
[menu-bar mymenu pl]
'("Previous Line" . previous-line))
;; code to remove the whole menu panel
;; (global-unset-key [menu-bar mymenu])
next reply other threads:[~2009-10-31 22:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 22:29 Daniel Carvalho [this message]
2009-11-01 12:45 ` bug#4843: creating menus Jan Djärv
2009-11-01 12:58 ` Daniel Carvalho
2009-11-02 8:08 ` Jan D.
2009-11-02 8:15 ` bug#4843: marked as done (creating menus) Emacs bug Tracking System
-- strict thread matches above, loose matches on Subject: below --
2009-11-02 1:44 bug#4843: creating menus Chong Yidong
2009-11-02 8:20 ` Jan D.
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=9e43f0e60910311529h5a53f9dck7aed3cdc115c9a35@mail.gmail.com \
--to=idnael@gmail.com \
--cc=4843@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@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).