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:
parent
68a38c2303
commit
f2633782cd
1 changed files with 2 additions and 1 deletions
|
|
@ -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)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue