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:
parent
c8e8f4e3c2
commit
546f2d86d1
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue