emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 96b754c105 083/101: org-get-category, org-get-tags:


From: ELPA Syncer
Subject: [elpa] externals/org 96b754c105 083/101: org-get-category, org-get-tags: Clarify that match data is modified
Date: Sat, 1 Jul 2023 09:59:16 -0400 (EDT)

branch: externals/org
commit 96b754c1058caafb2bb3b0bcc75c4d33d5d18e95
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-get-category, org-get-tags: Clarify that match data is modified
    
    * lisp/org.el (org-get-category):
    (org-get-tags): Update docstrings, documenting that these functions
    may modify match data.
---
 lisp/org.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 7428519e58..c29d9e840d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7966,7 +7966,9 @@ call CMD."
 
 (defun org-get-category (&optional pos _)
   "Get the category applying to position POS.
-Return \"???\" when no category is set."
+Return \"???\" when no category is set.
+
+This function may modify the match data."
   ;; Sync cache.
   (or (org-entry-get-with-inheritance
        "CATEGORY" nil (or pos (point)))
@@ -12150,7 +12152,9 @@ only the most local tag is returned.
 However, when optional argument LOCAL is non-nil, only return
 tags specified at the headline.
 
-Inherited tags have the `inherited' text property."
+Inherited tags have the `inherited' text property.
+
+This function may modify the match data."
   (if (and org-trust-scanner-tags
            (or (not epom) (eq epom (point)))
            (not local))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]