aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaël Cadilhac2007-09-24 15:16:01 +0000
committerMichaël Cadilhac2007-09-24 15:16:01 +0000
commitf0fe5c145df2bb03a13afb8ffbc93b482505aa74 (patch)
tree883554ca9ec79ac31bd81fdff3a0bb10580e2e66
parent104b04f5ad80c7ee55d1722e0d7a7ad627f22586 (diff)
downloademacs-f0fe5c145df2bb03a13afb8ffbc93b482505aa74.tar.gz
emacs-f0fe5c145df2bb03a13afb8ffbc93b482505aa74.zip
(whitespace-tickle-timer): Don't install the timer if
whitespace-rescan-timer-time is 0.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/whitespace.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e19201b313c..c2d80dc0644 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-09-24 Micha,Ak(Bl Cadilhac <michael@cadilhac.name>
2
3 * whitespace.el (whitespace-tickle-timer): Don't install the timer if
4 whitespace-rescan-timer-time is 0.
5
12007-09-24 Karl Berry <karl@gnu.org> 62007-09-24 Karl Berry <karl@gnu.org>
2 7
3 * international/mule.el (coding-system-base): Fix doc string grammar. 8 * international/mule.el (coding-system-base): Fix doc string grammar.
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."
709If timer is not set, then set it to scan the files in 709If timer is not set, then set it to scan the files in
710`whitespace-all-buffer-files' periodically (defined by 710`whitespace-all-buffer-files' periodically (defined by
711`whitespace-rescan-timer-time') for whitespace creep." 711`whitespace-rescan-timer-time') for whitespace creep."
712 (if (and whitespace-rescan-timer-time (not whitespace-rescan-timer)) 712 (if (and whitespace-rescan-timer-time
713 (/= whitespace-rescan-timer-time 0)
714 (not whitespace-rescan-timer))
713 (setq whitespace-rescan-timer 715 (setq whitespace-rescan-timer
714 (add-timeout whitespace-rescan-timer-time 716 (add-timeout whitespace-rescan-timer-time
715 'whitespace-rescan-files-in-buffers nil 717 'whitespace-rescan-files-in-buffers nil