]> git.eshelyaron.com Git - emacs.git/commit
Make add-face-text-property not be destructive on strings
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Oct 2019 03:08:32 +0000 (05:08 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Oct 2019 03:08:32 +0000 (05:08 +0200)
commit967eed75968571edc503a770b8a631a4477c9b4d
tree989d62ec198b2596d59bb159cec1122bbd4712f0
parent534783c526000a3320f1d4c0a42d26c39fff6bd0
Make add-face-text-property not be destructive on strings

* src/textprop.c (add_properties): Take a parameter to say whether
it's allowed to be destructive or not (bug#20153).
(add_text_properties_1): Ditto.
(Fadd_face_text_property): Use this to say that it shouldn't
modify face properties on strings destructively.  This avoids
altering the face properties of one string when altering them on a
copy of the string.
src/textprop.c