Mercurial > emacs
diff lisp/whitespace.el @ 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 | 7c8949dbfa0d |
children | d3e87ee5aa0e 14c4a6aac623 |
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