]> git.eshelyaron.com Git - emacs.git/commitdiff
(whitespace-tickle-timer): Don't install the timer if
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Mon, 24 Sep 2007 15:16:01 +0000 (15:16 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Mon, 24 Sep 2007 15:16:01 +0000 (15:16 +0000)
whitespace-rescan-timer-time is 0.

lisp/ChangeLog
lisp/whitespace.el

index e19201b313c33631e3c4992d4eaaa5e5afd8e2bf..c2d80dc06441ad632504bbed0344217cdeac69e1 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-24  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
+
+       * whitespace.el (whitespace-tickle-timer): Don't install the timer if
+       whitespace-rescan-timer-time is 0.
+
 2007-09-24  Karl Berry  <karl@gnu.org>
 
        * international/mule.el (coding-system-base): Fix doc string grammar.
index 3ea8394b0b79681d6db2073ac8bc75898dc3f274..6e6aeb5fbb71b34b632e21468d8c98ebe94311ed 100644 (file)
@@ -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