diff --git a/lisp/savehist.el b/lisp/savehist.el index 7d755bc5047..7cfb358dd6d 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el @@ -104,6 +104,8 @@ the user's privacy." (cancel-timer savehist-timer)) (setq savehist-timer nil)) +(defvar savehist-autosave-interval) + (defun savehist--manage-timer () "Set or cancel an invocation of `savehist-autosave' on a timer. If `savehist-mode' is enabled, set the timer, otherwise cancel the timer.