aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKarl Heuer1997-10-15 23:00:25 +0000
committerKarl Heuer1997-10-15 23:00:25 +0000
commit4fdd59c0db6af9192112d86b3ab17b6ebe8d1ff5 (patch)
tree9d16876f51fc89ad5f465802e9da887d94758e67 /lisp
parent91f676a0308cfa468f2090416dd6d9561ed82f40 (diff)
downloademacs-4fdd59c0db6af9192112d86b3ab17b6ebe8d1ff5.tar.gz
emacs-4fdd59c0db6af9192112d86b3ab17b6ebe8d1ff5.zip
(imenu-add-to-menubar): If not using
imenu-default-create-index-function, don't require its variables.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/imenu.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 6c5affd4233..89757767e5e 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -902,7 +902,9 @@ The returned value is of the form (INDEX-NAME . INDEX-POSITION)."
902NAME is a string used to name the menu bar item. 902NAME is a string used to name the menu bar item.
903See the command `imenu' for more information." 903See the command `imenu' for more information."
904 (interactive "sImenu menu item name: ") 904 (interactive "sImenu menu item name: ")
905 (if (or (and (fboundp imenu-prev-index-position-function) 905 (if (or (not (eq imenu-create-index-function
906 'imenu-default-create-index-function))
907 (and (fboundp imenu-prev-index-position-function)
906 (fboundp imenu-extract-index-name-function)) 908 (fboundp imenu-extract-index-name-function))
907 (and imenu-generic-expression)) 909 (and imenu-generic-expression))
908 (let ((newmap (make-sparse-keymap)) 910 (let ((newmap (make-sparse-keymap))