summaryrefslogtreecommitdiff
path: root/lisp/whitespace.el
diff options
context:
space:
mode:
authorMichaël Cadilhac <michael.cadilhac@lrde.org>2007-09-24 15:16:01 +0000
committerMichaël Cadilhac <michael.cadilhac@lrde.org>2007-09-24 15:16:01 +0000
commitf0fe5c145df2bb03a13afb8ffbc93b482505aa74 (patch)
tree883554ca9ec79ac31bd81fdff3a0bb10580e2e66 /lisp/whitespace.el
parent104b04f5ad80c7ee55d1722e0d7a7ad627f22586 (diff)
(whitespace-tickle-timer): Don't install the timer if
whitespace-rescan-timer-time is 0.
Diffstat (limited to 'lisp/whitespace.el')
-rw-r--r--lisp/whitespace.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 3ea8394b0b7..6e6aeb5fbb7 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -709,7 +709,9 @@ periodically for whitespace."
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