1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

David Ponce <david@dponce.com>

(which-function-mode): Don't cancel which-func-update-timer if not set.
This commit is contained in:
Glenn Morris 2004-01-18 14:00:34 +00:00
parent 68a38c2303
commit f2633782cd

View file

@ -198,7 +198,8 @@ and off otherwise."
(or (eq which-func-modes t)
(member major-mode which-func-modes))))))
;; Turn it off
(cancel-timer which-func-update-timer)
(when (timerp which-func-update-timer)
(cancel-timer which-func-update-timer))
(setq which-func-update-timer nil)
(dolist (buf (buffer-list))
(with-current-buffer buf (setq which-func-mode nil)))))