Make savehist timer actually repeat
* lisp/savehist.el (savehist--manage-timer): Correct the arguments to 'run-with-timer'. Suggestion from Stéphane Marks <shipmints@gmail.com>. (Bug#78820)
This commit is contained in:
parent
af68c6e825
commit
318715105d
1 changed files with 2 additions and 1 deletions
|
|
@ -119,7 +119,8 @@ executes in under 5 ms on my system."
|
|||
savehist-autosave-interval
|
||||
(null savehist-timer))
|
||||
(setq savehist-timer
|
||||
(run-with-timer savehist-autosave-interval t #'savehist-autosave))
|
||||
(run-with-timer savehist-autosave-interval
|
||||
savehist-autosave-interval #'savehist-autosave))
|
||||
(savehist--cancel-timer)))
|
||||
|
||||
(defcustom savehist-autosave-interval (* 5 60)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue