(imenu-add-to-menubar): If not using
imenu-default-create-index-function, don't require its variables.
This commit is contained in:
parent
91f676a030
commit
4fdd59c0db
1 changed files with 3 additions and 1 deletions
|
@ -902,7 +902,9 @@ The returned value is of the form (INDEX-NAME . INDEX-POSITION)."
|
|||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue