branch: externals-release/org commit e37e9b692e5992daee7a767b4d9707b2b582af20 Author: Kyle Meyer <k...@kyleam.com> Commit: Kyle Meyer <k...@kyleam.com>
org-persist: Silence recent byte-compiler warning * lisp/org-persist.el: Bind pp-use-max-width to silence byte-compiler warning about unused lexical variable. Note that loading pp.el upfront rather than relying on the pp function being autoloaded would also eliminate the warning, but that would only work on Emacs 29 or later because earlier versions do not have the pp-use-max-width option. --- lisp/org-persist.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index a96f0fdc90..a0652b99c5 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -160,6 +160,8 @@ (declare-function org-next-visible-heading "org" (arg)) (declare-function org-at-heading-p "org" (&optional invisible-not-ok)) +;; Silence byte-compiler (used in `org-persist--write-elisp-file'). +(defvar pp-use-max-width) (defconst org-persist--storage-version "3.1" "Persistent storage layout version.")