]> git.eshelyaron.com Git - emacs.git/commitdiff
(which-func-update-1): Turn the mode
authorRichard M. Stallman <rms@gnu.org>
Sun, 29 May 2005 08:31:54 +0000 (08:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 29 May 2005 08:31:54 +0000 (08:31 +0000)
off in case of error by setting which-func-mode.

lisp/progmodes/which-func.el

index d329e234025d2c8c7307ac571104cb6114e75942..1fa37532ab049d5616955e9ecc2d2d9000da6463 100644 (file)
@@ -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