diff options
author | Michaël Cadilhac <michael.cadilhac@lrde.org> | 2007-09-24 15:16:01 +0000 |
---|---|---|
committer | Michaël Cadilhac <michael.cadilhac@lrde.org> | 2007-09-24 15:16:01 +0000 |
commit | f0fe5c145df2bb03a13afb8ffbc93b482505aa74 (patch) | |
tree | 883554ca9ec79ac31bd81fdff3a0bb10580e2e66 /lisp/whitespace.el | |
parent | 104b04f5ad80c7ee55d1722e0d7a7ad627f22586 (diff) | |
download | emacs-f0fe5c145df2bb03a13afb8ffbc93b482505aa74.tar.gz |
(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.el | 4 |
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 |