# HG changeset patch # User Micha¸«³l Cadilhac # Date 1190646949 0 # Node ID aff02a4292a0fd9c2fdf897efbc0cebee41d4a06 # Parent 32df744751898fd303d117e75333c36aca340f93 (whitespace-tickle-timer): Don't install the timer if whitespace-rescan-timer-time is 0. diff -r 32df74475189 -r aff02a4292a0 lisp/whitespace.el --- 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