changeset 27048:32ebef66c1be

(make-mode-line-mouse-sensitive): Copy keymap assigned to mode-line-mode-menu because bindings.el is dumped with Emacs, and thus the lists used for menu-item definition will be copied to pure space. Emacs' menu code (parse_menu_item) doesn't like pure menu item definitions.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 30 Dec 1999 17:48:22 +0000
parents 936229b925c8
children 53146c13106f
files lisp/bindings.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/bindings.el	Thu Dec 30 14:14:38 1999 +0000
+++ b/lisp/bindings.el	Thu Dec 30 17:48:22 1999 +0000
@@ -237,7 +237,7 @@
       (define-key map [overwrite-mode]
 	'(menu-item "Overwrite" overwrite-mode
 		    :active t :style toggle :selected overwrite-mode))
-      (setq mode-line-mode-menu map)
+      (setq mode-line-mode-menu (copy-keymap map))
       (defun mode-line-mode-menu (event)
 	(interactive "@e")
 	(x-popup-menu event mode-line-mode-menu)))