diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-07-05 14:56:31 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-07-05 14:56:31 -0400 |
commit | 7dbfa7197c53e527d2833a42ba21aeab43f1e171 (patch) | |
tree | fef47cd2bb912469d01b9e8682964bdd2d917a15 /lisp/progmodes/which-func.el | |
parent | 919d884a6dc860fc4268a5c4ec44e2e80a42836f (diff) | |
download | emacs-7dbfa7197c53e527d2833a42ba21aeab43f1e171.tar.gz |
* lisp/progmodes/which-func.el (which-func-ff-hook): Don't output a message
if imenu is simply not configured.
Fixes: debbugs:8941
Diffstat (limited to 'lisp/progmodes/which-func.el')
-rw-r--r-- | lisp/progmodes/which-func.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index 4e4d7b15053..97e188139e9 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el @@ -206,7 +206,8 @@ It creates the Imenu index for the buffer, if necessary." (setq imenu--index-alist (save-excursion (funcall imenu-create-index-function)))) (error - (message "which-func-ff-hook error: %S" err) + (unless (equal err '(error "This buffer cannot use `imenu-default-create-index-function'")) + (message "which-func-ff-hook error: %S" err)) (setq which-func-mode nil)))) (defun which-func-update () |