summaryrefslogtreecommitdiff
path: root/lisp/progmodes/which-func.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-01-14 23:20:13 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-01-14 23:20:13 -0500
commit6e8cd0aecac332675ea1a700c7e3db3d48f62c15 (patch)
tree835cda8971e3df9ce318e44ca4c860c18c6d20db /lisp/progmodes/which-func.el
parent4586ce8a594f3627f2451f49712911049642d91e (diff)
downloademacs-6e8cd0aecac332675ea1a700c7e3db3d48f62c15.tar.gz
* lisp/progmodes/which-func.el (which-function): Silence imenu errors.
Fixes: debbugs:13433
Diffstat (limited to 'lisp/progmodes/which-func.el')
-rw-r--r--lisp/progmodes/which-func.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index adf378f6bc7..edfe368479c 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -290,7 +290,7 @@ If no function name is found, return nil."
(when (and (null name)
(boundp 'imenu--index-alist) (null imenu--index-alist)
(null which-function-imenu-failed))
- (imenu--make-index-alist t)
+ (ignore-errors (imenu--make-index-alist t))
(unless imenu--index-alist
(set (make-local-variable 'which-function-imenu-failed) t)))
;; If we have an index alist, use it.