# HG changeset patch # User Karl Heuer # Date 876956425 0 # Node ID 68621d697ee28dff27312f43cafca871bf2ecf96 # Parent 8762dec6d161dffd07ffb23860f7cc6aa5cf12e3 (imenu-add-to-menubar): If not using imenu-default-create-index-function, don't require its variables. diff -r 8762dec6d161 -r 68621d697ee2 lisp/imenu.el --- a/lisp/imenu.el Wed Oct 15 22:54:24 1997 +0000 +++ b/lisp/imenu.el Wed Oct 15 23:00:25 1997 +0000 @@ -902,7 +902,9 @@ NAME is a string used to name the menu bar item. See the command `imenu' for more information." (interactive "sImenu menu item name: ") - (if (or (and (fboundp imenu-prev-index-position-function) + (if (or (not (eq imenu-create-index-function + 'imenu-default-create-index-function)) + (and (fboundp imenu-prev-index-position-function) (fboundp imenu-extract-index-name-function)) (and imenu-generic-expression)) (let ((newmap (make-sparse-keymap))