; lisp/saveplace.el, etc/NEWS: Refinements to bug#75837.

This commit is contained in:
Stéphane Marks 2025-12-16 08:38:33 -05:00 committed by Sean Whitton
parent 2b1440946e
commit 91d4120289
2 changed files with 9 additions and 11 deletions

View file

@ -1567,18 +1567,16 @@ option is nil.
---
*** You can now regularly auto-save places.
Customize user option 'save-place-autosave-interval' to the number of
seconds between auto saving places. For example, to save places every 5
minutes:
M-x customize-option RET save-place-autosave-interval RET 300
Or in Elisp:
(setopt save-place-autosave-interval (* 60 5))
seconds between auto saving places. For example, customize this
variable to 300 to save places every 5 minutes. In Elisp, use 'setopt'
not 'setq'.
If 'save-place-autosave-interval' is nil, auto saving is disabled; this
is the default. As before, saved places are scheduled to be saved at
Emacs exit.
is the default.
This user option is in sympathy with recentf, and savehist autosave
timers.
** Savehist

View file

@ -237,7 +237,7 @@ If `save-place-mode' is enabled, set the timer, otherwise cancel the timer."
"The interval between auto saves of buffer places.
If set to nil, disables timer-based auto saving."
:type '(choice (const :tag "Disabled" nil)
(integer :tag "Seconds"))
(integer :tag "Auto-save interval in seconds"))
:version "31.1"
:set (lambda (sym val)
(set-default sym val)