0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-24 18:32:52 +00:00

org-add-prop-inherited: Avoid modifying S

* lisp/org.el (org-add-prop-inherited): Do not modify argument by side
effect.  Modifying strings may cause unexpected issues when working
with constant strings.

Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62847
This commit is contained in:
Ihor Radchenko 2023-05-04 21:53:48 +02:00
parent c8e8f4e3c2
commit 546f2d86d1
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -11588,8 +11588,7 @@ the list of tags in this group."
(delete-overlay org-tags-overlay)
(defun org-add-prop-inherited (s)
(add-text-properties 0 (length s) '(inherited t) s)
s)
(propertize s 'inherited t))
(defun org-toggle-tag (tag &optional onoff)
"Toggle the tag TAG for the current line.