From: Richard M. Stallman Date: Sat, 9 Mar 1996 00:32:05 +0000 (+0000) Subject: (imenu--mouse-menu): Pass proper arg to x-popup-menu. X-Git-Tag: emacs-19.34~1062 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd7ac8e8a4448e7fa26dccb3b3f969fb310b4adc;p=emacs.git (imenu--mouse-menu): Pass proper arg to x-popup-menu. --- diff --git a/lisp/imenu.el b/lisp/imenu.el index a8d9d1567d8..633c65afaf8 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -713,6 +713,9 @@ Returns t for rescan and otherwise a position number." (if (< 1 (length (cdr menu))) (cdr menu) (cdr (cadr menu)))))) + + (or imenu-use-keymap-menu + (setq menu (list "Imenu" (delq nil menu)))) (setq position (x-popup-menu event menu)) (if imenu-use-keymap-menu (progn