From fc0fb90b67030e5179e689b52bbbbfa14f1e7ee2 Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Wed, 19 Jun 2024 11:20:04 -0400 Subject: [PATCH] ; fix typos * doc/org-manual.org: Add missing '~'. * lisp/org-element-ast.el (org-element-deferred): Fix typo in docstring. * lisp/org-element.el (org-element-archive-tag, org-element-drawer-re-nogroup, org-element--cache-log-message): Fix typos in docstring. (org-element--current-element, org-element--cache-find, org-element-cache-map): Fix typos in comments. --- doc/org-manual.org | 2 +- lisp/org-element-ast.el | 2 +- lisp/org-element.el | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 170eea506..33f1d164d 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -23163,7 +23163,7 @@ specify a date December 1, 2005, the call might look like =(diary-date 12 1 2005)= or =(diary-date 1 12 2005)= or =(diary-date 2005 12 1)=, depending on the settings. This has been the source of much confusion. Org mode users can resort to special versions of -these functions, namely ~org-date~, ~org-anniversary~, ~org-cyclic, and +these functions, namely ~org-date~, ~org-anniversary~, ~org-cyclic~, and ~org-block~. These work just like the corresponding ~diary-~ functions, but with stable ISO order of arguments (year, month, day) wherever applicable, independent of the value of diff --git a/lisp/org-element-ast.el b/lisp/org-element-ast.el index fba6b37e6..2c767e1ad 100644 --- a/lisp/org-element-ast.el +++ b/lisp/org-element-ast.el @@ -270,7 +270,7 @@ Return value is the containing property name, as a keyword, or nil." "Dynamically computed value. The value can be obtained by calling FUNCTION with containing syntax -node as first argument and ARGS list as remainting arguments. +node as first argument and ARGS list as remaining arguments. If the function throws `:org-element-deferred-retry' signal, assume that the syntax node has been modified by side effect and retry diff --git a/lisp/org-element.el b/lisp/org-element.el index 191bb5698..811d32276 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -110,7 +110,7 @@ ;; to current setup. (defconst org-element-archive-tag "ARCHIVE" - "Tag marking a substree as archived.") + "Tag marking a subtree as archived.") (defconst org-element-citation-key-re (rx "@" (group (one-or-more (any word "-.:?!`'/*@+|(){}<>&_^$#%~")))) @@ -181,8 +181,7 @@ Drawer's name is located in match group 1.") (rx line-start (0+ (any ?\s ?\t)) ":" (1+ (any ?- ?_ word)) ":" (0+ (any ?\s ?\t)) line-end) - "Regexp matching opening or closing line of a drawer. -Drawer's name is located in match group 1.") + "Regexp matching opening or closing line of a drawer.") (defconst org-element-dynamic-block-open-re (rx line-start (0+ (any ?\s ?\t)) @@ -4679,7 +4678,7 @@ element it has to parse." ;; ;; In general, the checks below should be as efficient as ;; possible, especially early in the `cond' form. (The - ;; early checks will contribute to al subsequent parsers as + ;; early checks will contribute to all subsequent parsers as ;; well). (cond ;; Item. @@ -5956,7 +5955,7 @@ better to remove the commands advised in such a way from this list.") (defmacro org-element--cache-log-message (format-string &rest args) "Add a new log message for org-element-cache. -FORMAT-STRING and ARGS are the same arguments as in `foramt'." +FORMAT-STRING and ARGS are the same arguments as in `format'." `(when (or org-element--cache-diagnostics (eq org-element--cache-self-verify 'backtrace)) (let* ((format-string (concat (format "org-element-cache diagnostics(%s): " @@ -6226,7 +6225,7 @@ the cache." ;; children starting at the same pos. (not (org-element-type-p hashed '(section org-data table)))) hashed - ;; No appriate HASHED. Search the cache. + ;; No appropriate HASHED. Search the cache. (while node (let* ((element (avl-tree--node-data node)) (begin (org-element-begin element))) @@ -8323,7 +8322,7 @@ the cache." limit-count)) (cache-walk-abort)) ;; Make sure that we have a cached - ;; element at the new STAR. + ;; element at the new START. (when start (element-match-at-point))) ;; Check if the buffer or cache has been modified. (unless (org-with-base-buffer nil