1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-30 08:08:26 +00:00

ox-publish: Improve docstrings

* lisp/ox-publish.el (org-publish-cache-get): Improve docstrings.
This commit is contained in:
Nicolas Goaziou 2016-11-06 11:30:23 +01:00
parent dc3c69918f
commit 58683d2cf4

View File

@ -1270,15 +1270,16 @@ if necessary, unless NO-CREATE is non-nil."
(defun org-publish-cache-get (key)
"Return the value stored in `org-publish-cache' for key KEY.
Returns nil, if no value or nil is found, or the cache does not
exist."
Return nil, if no value or nil is found. Raise an error if the
cache does not exist."
(unless org-publish-cache
(error "`org-publish-cache-get' called, but no cache present"))
(gethash key org-publish-cache))
(defun org-publish-cache-set (key value)
"Store KEY VALUE pair in `org-publish-cache'.
Returns value on success, else nil."
Returns value on success, else nil. Raise an error if the cache
does not exist."
(unless org-publish-cache
(error "`org-publish-cache-set' called, but no cache present"))
(puthash key value org-publish-cache))