From 5bbd58d34f7b89d1105c294b428bd592e83c671a Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Mon, 13 Nov 2023 11:28:55 +0200 Subject: [PATCH] * lisp/org-element.el: Fix checkdoc warnings (org-element--cache-persist-after-read): Make docstring less than 80 columns wide. * lisp/org-persist.el (org-persist-load): Document all the function arguments. --- lisp/org-element.el | 5 +++-- lisp/org-persist.el | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index f58345321..a2989f090 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -7631,8 +7631,9 @@ consistent with the cache." (defun org-element--cache-persist-after-read (container &optional associated) "Setup restored cache for CONTAINER and ASSOCIATED. -Re-fill :buffer properties for cache elements (buffer objects cannot be written onto disk). -Also, perform some consistency checks to prevent loading corrupted cache." +Re-fill :buffer properties for cache elements (buffer objects cannot +be written onto disk). Also, perform some consistency checks to +prevent loading corrupted cache." (when (and (plist-get associated :file) (get-file-buffer (plist-get associated :file))) (with-current-buffer (get-file-buffer (plist-get associated :file)) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index 5267e7400..9d740df5f 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -1036,7 +1036,8 @@ CONTAINER as well. For example: (cl-defun org-persist-load (container &optional associated hash-must-match &key read-related) "Load CONTAINER data for ASSOCIATED. -The arguments have the same meaning as in `org-persist-read'." +The arguments CONTAINER, ASSOCIATED, HASH-MUST-MATCH, and READ-RELATED +have the same meaning as in `org-persist-read'." (org-persist-read container associated hash-must-match t :read-related read-related)) (defun org-persist-load-all (&optional associated)