mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(whitespace-tickle-timer): Don't install the timer if
whitespace-rescan-timer-time is 0.
This commit is contained in:
parent
104b04f5ad
commit
f0fe5c145d
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue