From: Richard M. Stallman Date: Sun, 29 May 2005 08:31:54 +0000 (+0000) Subject: (which-func-update-1): Turn the mode X-Git-Tag: emacs-pretest-22.0.90~9448 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d2026d5184a6297ed6e6ea012a19a2bd482929c;p=emacs.git (which-func-update-1): Turn the mode off in case of error by setting which-func-mode. --- diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index d329e234025..1fa37532ab0 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el @@ -196,7 +196,7 @@ It creates the Imenu index for the buffer, if necessary." (puthash window current which-func-table) (force-mode-line-update))) (error - (which-func-mode -1) + (setq which-func-mode nil) (error "Error in which-func-update: %s" info)))))) ;;;###autoload