summaryrefslogtreecommitdiff
path: root/lisp/org/org-element.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-12-23 18:21:10 +0100
committerStefan Kangas <stefankangas@gmail.com>2022-12-26 10:42:02 +0100
commit2608e5edcca5094b61b4ccebcef160cc2bfd7f83 (patch)
tree59e34dc95aa4c1526d6ba7d376ab0adbeb699935 /lisp/org/org-element.el
parent6c00d126e7fe1f6e42a0c9454c2ab4a29dcd5989 (diff)
downloademacs-2608e5edcca5094b61b4ccebcef160cc2bfd7f83.tar.gz
emacs-2608e5edcca5094b61b4ccebcef160cc2bfd7f83.tar.bz2
emacs-2608e5edcca5094b61b4ccebcef160cc2bfd7f83.zip
; Fix typos
(cherry picked from commit a5d39e11443fa30c8e8bc58254a1a59550dcd99e)
Diffstat (limited to 'lisp/org/org-element.el')
-rw-r--r--lisp/org/org-element.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el
index e049c65d6bf..ace1cc1a984 100644
--- a/lisp/org/org-element.el
+++ b/lisp/org/org-element.el
@@ -7272,18 +7272,18 @@ Each element indicates the latest `org-element--cache-change-tic' when
change did not contain gaps.")
;;;###autoload
-(defun org-element-cache-reset (&optional all no-persistance)
+(defun org-element-cache-reset (&optional all no-persistence)
"Reset cache in current buffer.
When optional argument ALL is non-nil, reset cache in all Org
buffers.
-When optional argument NO-PERSISTANCE is non-nil, do not try to update
+When optional argument NO-PERSISTENCE is non-nil, do not try to update
the cache persistence in the buffer."
(interactive "P")
(dolist (buffer (if all (buffer-list) (list (current-buffer))))
(org-with-base-buffer buffer
(when (and org-element-use-cache (derived-mode-p 'org-mode))
;; Only persist cache in file buffers.
- (when (and (buffer-file-name) (not no-persistance))
+ (when (and (buffer-file-name) (not no-persistence))
(when (not org-element-cache-persistent)
(org-persist-unregister 'org-element--headline-cache (current-buffer))
(org-persist-unregister 'org-element--cache (current-buffer)))