aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Marks2025-12-16 08:38:33 -0500
committerSean Whitton2025-12-17 11:58:05 +0000
commit91d4120289e79c7c8097691cbf89ff5b304b74e4 (patch)
tree59ce4189f1a4b249df0d30541234cd8a7a674b20
parent2b1440946e20bcf910f03cd665f68a268c687192 (diff)
downloademacs-91d4120289e79c7c8097691cbf89ff5b304b74e4.tar.gz
emacs-91d4120289e79c7c8097691cbf89ff5b304b74e4.zip
; lisp/saveplace.el, etc/NEWS: Refinements to bug#75837.
-rw-r--r--etc/NEWS16
-rw-r--r--lisp/saveplace.el2
2 files changed, 8 insertions, 10 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 311bf044476..f74c17e4f36 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1567,18 +1567,16 @@ option is nil.
1567--- 1567---
1568*** You can now regularly auto-save places. 1568*** You can now regularly auto-save places.
1569Customize user option 'save-place-autosave-interval' to the number of 1569Customize user option 'save-place-autosave-interval' to the number of
1570seconds between auto saving places. For example, to save places every 5 1570seconds between auto saving places. For example, customize this
1571minutes: 1571variable to 300 to save places every 5 minutes. In Elisp, use 'setopt'
1572not 'setq'.
1572 1573
1573 M-x customize-option RET save-place-autosave-interval RET 300 1574If 'save-place-autosave-interval' is nil, auto saving is disabled; this
1574 1575is the default.
1575Or in Elisp:
1576 1576
1577 (setopt save-place-autosave-interval (* 60 5)) 1577This user option is in sympathy with recentf, and savehist autosave
1578timers.
1578 1579
1579If 'save-place-autosave-interval' is nil, auto saving is disabled; this
1580is the default. As before, saved places are scheduled to be saved at
1581Emacs exit.
1582 1580
1583** Savehist 1581** Savehist
1584 1582
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index 51df1edeaa7..d3119fd6af2 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -237,7 +237,7 @@ If `save-place-mode' is enabled, set the timer, otherwise cancel the timer."
237 "The interval between auto saves of buffer places. 237 "The interval between auto saves of buffer places.
238If set to nil, disables timer-based auto saving." 238If set to nil, disables timer-based auto saving."
239 :type '(choice (const :tag "Disabled" nil) 239 :type '(choice (const :tag "Disabled" nil)
240 (integer :tag "Seconds")) 240 (integer :tag "Auto-save interval in seconds"))
241 :version "31.1" 241 :version "31.1"
242 :set (lambda (sym val) 242 :set (lambda (sym val)
243 (set-default sym val) 243 (set-default sym val)