lisp/ox-publish.el (org-publish-timestamp-filename): Document function arguments

This commit is contained in:
Ihor Radchenko 2023-11-15 11:20:33 +02:00
parent 4758255035
commit 819cd73cb4
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 1 deletions

View File

@ -358,7 +358,9 @@ You can overwrite this default per project in your
;;; Timestamp-related functions
(defun org-publish-timestamp-filename (filename &optional pub-dir pub-func)
"Return path to timestamp file for filename FILENAME."
"Return path to timestamp file for filename FILENAME.
The timestamp file name is constructed using FILENAME, publishing
directory PUB-DIR, and PUB-FUNC publishing function."
(setq filename (concat filename "::" (or pub-dir "") "::"
(format "%s" (or pub-func ""))))
(concat "X" (if (fboundp 'sha1) (sha1 filename) (md5 filename))))