]> git.eshelyaron.com Git - emacs.git/commitdiff
Make Fadd_face_text_property even less destructive
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 12 Oct 2019 21:35:26 +0000 (23:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 12 Oct 2019 21:35:26 +0000 (23:35 +0200)
* src/textprop.c (Fadd_face_text_property): We need to be
non-destructive in buffers, too, because face properties may have
been added with `put-text-property' as a list that's been reused.

src/textprop.c

index 13cd87ac473a7fc63c6d61fe1d3e918626b674f8..93d19754da59376647ea7879dc4402137fafb244 100644 (file)
@@ -1351,7 +1351,7 @@ into it.  */)
                         (NILP (append)
                          ? TEXT_PROPERTY_PREPEND
                          : TEXT_PROPERTY_APPEND),
-                        !STRINGP (object));
+                        false);
   return Qnil;
 }