Mercurial > emacs
changeset 84837:aff02a4292a0
(whitespace-tickle-timer): Don't install the timer if
whitespace-rescan-timer-time is 0.
author | Michaël Cadilhac <michael.cadilhac@lrde.org> |
---|---|
date | Mon, 24 Sep 2007 15:15:49 +0000 |
parents | 32df74475189 |
children | bcf2bbdd5c2f |
files | lisp/whitespace.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/whitespace.el Mon Sep 24 13:54:18 2007 +0000 +++ b/lisp/whitespace.el Mon Sep 24 15:15:49 2007 +0000 @@ -709,7 +709,9 @@ If timer is not set, then set it to scan the files in `whitespace-all-buffer-files' periodically (defined by `whitespace-rescan-timer-time') for whitespace creep." - (if (and whitespace-rescan-timer-time (not whitespace-rescan-timer)) + (if (and whitespace-rescan-timer-time + (/= whitespace-rescan-timer-time 0) + (not whitespace-rescan-timer)) (setq whitespace-rescan-timer (add-timeout whitespace-rescan-timer-time 'whitespace-rescan-files-in-buffers nil