diff options
| author | Stéphane Marks | 2025-12-16 08:38:33 -0500 |
|---|---|---|
| committer | Sean Whitton | 2025-12-17 11:58:05 +0000 |
| commit | 91d4120289e79c7c8097691cbf89ff5b304b74e4 (patch) | |
| tree | 59ce4189f1a4b249df0d30541234cd8a7a674b20 | |
| parent | 2b1440946e20bcf910f03cd665f68a268c687192 (diff) | |
| download | emacs-91d4120289e79c7c8097691cbf89ff5b304b74e4.tar.gz emacs-91d4120289e79c7c8097691cbf89ff5b304b74e4.zip | |
; lisp/saveplace.el, etc/NEWS: Refinements to bug#75837.
| -rw-r--r-- | etc/NEWS | 16 | ||||
| -rw-r--r-- | lisp/saveplace.el | 2 |
2 files changed, 8 insertions, 10 deletions
| @@ -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. |
| 1569 | Customize user option 'save-place-autosave-interval' to the number of | 1569 | Customize user option 'save-place-autosave-interval' to the number of |
| 1570 | seconds between auto saving places. For example, to save places every 5 | 1570 | seconds between auto saving places. For example, customize this |
| 1571 | minutes: | 1571 | variable to 300 to save places every 5 minutes. In Elisp, use 'setopt' |
| 1572 | not 'setq'. | ||
| 1572 | 1573 | ||
| 1573 | M-x customize-option RET save-place-autosave-interval RET 300 | 1574 | If 'save-place-autosave-interval' is nil, auto saving is disabled; this |
| 1574 | 1575 | is the default. | |
| 1575 | Or in Elisp: | ||
| 1576 | 1576 | ||
| 1577 | (setopt save-place-autosave-interval (* 60 5)) | 1577 | This user option is in sympathy with recentf, and savehist autosave |
| 1578 | timers. | ||
| 1578 | 1579 | ||
| 1579 | If 'save-place-autosave-interval' is nil, auto saving is disabled; this | ||
| 1580 | is the default. As before, saved places are scheduled to be saved at | ||
| 1581 | Emacs 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. |
| 238 | If set to nil, disables timer-based auto saving." | 238 | If 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) |