aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-07-05 14:56:31 -0400
committerStefan Monnier2011-07-05 14:56:31 -0400
commit7dbfa7197c53e527d2833a42ba21aeab43f1e171 (patch)
treefef47cd2bb912469d01b9e8682964bdd2d917a15
parent919d884a6dc860fc4268a5c4ec44e2e80a42836f (diff)
downloademacs-7dbfa7197c53e527d2833a42ba21aeab43f1e171.tar.gz
emacs-7dbfa7197c53e527d2833a42ba21aeab43f1e171.zip
* lisp/progmodes/which-func.el (which-func-ff-hook): Don't output a message
if imenu is simply not configured. Fixes: debbugs:8941
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/progmodes/which-func.el3
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 20679038120..1b550db3d6b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,13 +1,17 @@
12011-07-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/which-func.el (which-func-ff-hook): Don't output a message
4 if imenu is simply not configured (bug#8941).
5
12011-07-05 Ken Manheimer <ken.manheimer@gmail.com> 62011-07-05 Ken Manheimer <ken.manheimer@gmail.com>
2 7
3 * allout.el (allout-post-undo-hook): New allout outline-change 8 * allout.el (allout-post-undo-hook): New allout outline-change
4 event hook to signal undo activity. 9 event hook to signal undo activity.
5 (allout-post-command-business): Run allout-post-undo-hook if an 10 (allout-post-command-business): Run allout-post-undo-hook if an
6 undo just occurred. 11 undo just occurred.
7 (allout-after-copy-or-kill-hook), (allout-mode): Minor docstring 12 (allout-after-copy-or-kill-hook, allout-mode): Minor docstring changes.
8 changes. 13 * allout-widgets.el (allout-widgets-after-undo-function):
9 * allout-widgets.el (allout-widgets-after-undo-function): Ensure 14 Ensure the integrity of the current item's decoration after it has been
10 the integrity of the current item's decoration after it has been
11 in the vicinity of an undo. 15 in the vicinity of an undo.
12 (allout-widgets-mode): Include allout-widgets-after-undo-function 16 (allout-widgets-mode): Include allout-widgets-after-undo-function
13 on the new allout-post-undo-hook. 17 on the new allout-post-undo-hook.
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."
206 (setq imenu--index-alist 206 (setq imenu--index-alist
207 (save-excursion (funcall imenu-create-index-function)))) 207 (save-excursion (funcall imenu-create-index-function))))
208 (error 208 (error
209 (message "which-func-ff-hook error: %S" err) 209 (unless (equal err '(error "This buffer cannot use `imenu-default-create-index-function'"))
210 (message "which-func-ff-hook error: %S" err))
210 (setq which-func-mode nil)))) 211 (setq which-func-mode nil))))
211 212
212(defun which-func-update () 213(defun which-func-update ()