On Wed, Jun 18, 2025 at 8:36 AM Robert Pluim wrote: > >>>>> On Wed, 18 Jun 2025 14:20:11 +0200, Daniel Mendler via "Bug reports > for GNU Emacs, the Swiss army knife of text editors" < > bug-gnu-emacs@gnu.org> said: > >> (defun savehist--manage-timer () > >> ;; should be > >> (run-with-timer savehist-autosave-interval > >> savehist-autosave-interval #'savehist-autosave)) > >> ;; not silly t > >> (run-with-timer savehist-autosave-interval t #'savehist-autosave)) > > Daniel> To clarify, with the argument t, the timer does not run > repeatedly, but > Daniel> only once. That's the problem. Btw I wonder if it would make > sense to > Daniel> allow Stéphane's calling convention too and just dtrt. It is > not > Daniel> obviously silly imo. > > No need: > > (run-with-timer t savehist-autosave-interval #'savehist-autosave) > > already works, although the docstring and the manual donʼt make this > clear, you need to read the manual for `run-at-time' attentively. > Funny perhaps I did that at the time, but I prefer the more precise form.