all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4843: creating menus
@ 2009-10-31 22:29 Daniel Carvalho
  2009-11-01 12:45 ` Jan Djärv
  2009-11-02  8:15 ` bug#4843: marked as done (creating menus) Emacs bug Tracking System
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Carvalho @ 2009-10-31 22:29 UTC (permalink / raw)
  To: bug-gnu-emacs

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])






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-02  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-31 22:29 bug#4843: creating menus Daniel Carvalho
2009-11-01 12:45 ` 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

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.