Subject: [PATCH] * lisp/saveplace.el (save-places-to-alist): Checkdoc, add docstring

From: Jeremy Bryant <[email-masked]>
Date: Fri, 29 Aug 2025 22:48:33 +0100

Proposed patch to add a docstring in saveplace.el

>From ac3b2bae68cdc5b34413ff3ab77ae6e710041bfb Mon Sep 17 00:00:00 2001
From: Jeremy Bryant <[email-masked]>
Date: Fri, 29 Aug 2025 22:41:40 +0100
Subject: [PATCH] * lisp/saveplace.el (save-places-to-alist): Checkdoc, add
 docstring

Replace previous comment and simplify wording by refering to the
function save-place-to-alist being called on all buffers.
---
 lisp/saveplace.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index 1f36196408a..51df1edeaa7 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -406,8 +406,8 @@ save-place-alist-to-file
 	  (file-error (message "Saving places: can't write %s" file)))))))
 
 (defun save-places-to-alist ()
-  ;; go through buffer-list, saving places to alist if save-place-mode
-  ;; is non-nil, deleting them from alist if it is nil.
+  "Save all buffer filenames and positions to `save-place-alist'.
+See `save-place-to-alist'."
   (let ((buf-list (buffer-list)))
     (while buf-list
       ;; put this into a save-excursion in case someone is counting on
-- 
2.47.2