Mercurial > emacs
changeset 20051:68621d697ee2
(imenu-add-to-menubar): If not using
imenu-default-create-index-function, don't require its variables.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 15 Oct 1997 23:00:25 +0000 |
parents | 8762dec6d161 |
children | 38942e2dfffa |
files | lisp/imenu.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))