[Top][All Lists]

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

bug#4843: creating menus

From: Daniel Carvalho
Subject: bug#4843: creating menus
Date: Sat, 31 Oct 2009 22:29:52 +0000

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
  [menu-bar mymenu]
  (cons "MyMenu" (make-sparse-keymap "hoot hoot"))
  'tools )

;; Creating a menu item, under the menu by the id “[menu-bar mymenu]”
  [menu-bar mymenu nl]
  '("Next Line" . next-line))

;; creating another menu item
  [menu-bar mymenu pl]
  '("Previous Line" . previous-line))

;; code to remove the whole menu panel
;; (global-unset-key [menu-bar mymenu])

reply via email to

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