summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/check-declare.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-10-09 05:08:32 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-10-09 05:08:32 +0200
commit967eed75968571edc503a770b8a631a4477c9b4d (patch)
tree989d62ec198b2596d59bb159cec1122bbd4712f0 /lisp/emacs-lisp/check-declare.el
parent534783c526000a3320f1d4c0a42d26c39fff6bd0 (diff)
downloademacs-967eed75968571edc503a770b8a631a4477c9b4d.tar.gz
emacs-967eed75968571edc503a770b8a631a4477c9b4d.tar.bz2
emacs-967eed75968571edc503a770b8a631a4477c9b4d.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/check-declare.el')
0 files changed, 0 insertions, 0 deletions