changeset 15374:6b1faae68eba

(imenu--mouse-menu): Always use nested keymaps. (imenu-use-keymap-menu): Variable deleted.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Jun 1996 17:30:50 +0000
parents 76072cbcae84
children 1beabd8b78a1
files lisp/imenu.el
diffstat 1 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/imenu.el	Mon Jun 10 17:00:06 1996 +0000
+++ b/lisp/imenu.el	Mon Jun 10 17:30:50 1996 +0000
@@ -64,8 +64,6 @@
 ;;; Customizable variables
 ;;;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(defvar imenu-use-keymap-menu nil
-  "*Non-nil means use a keymap when making the mouse menu.")
 
 (defvar imenu-auto-rescan nil
   "*Non-nil means Imenu should always rescan the buffers.")
@@ -709,14 +707,10 @@
 		   index-alist)
 		 (or title (buffer-name))))
 	 position)
-    (and imenu-use-keymap-menu
-	 (setq menu (imenu--create-keymap-1 (car menu) 
-					    (if (< 1 (length (cdr menu)))
-						(cdr menu)
-					      (cdr (cadr menu))))))
-
-    (or imenu-use-keymap-menu
-	(setq menu (list "Imenu" (delq nil menu))))
+    (setq menu (imenu--create-keymap-1 (car menu) 
+				       (if (< 1 (length (cdr menu)))
+					   (cdr menu)
+					 (cdr (cadr menu)))))
     (setq position (x-popup-menu event menu))
     (if imenu-use-keymap-menu
 	(progn