]> code.delx.au - gnu-emacs/commit
Yet another fix for copying properties by 'format'
authorEli Zaretskii <eliz@gnu.org>
Fri, 8 Jul 2016 19:34:34 +0000 (22:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 8 Jul 2016 19:34:34 +0000 (22:34 +0300)
commitd8a9c450cf4c575d21297885d6823920aec0482f
tree35d2299a4dd5779e6c5afe2ed849c4942480c902
parentd0c0b71d889ff223d2e5073b733f4047d541343b
Yet another fix for copying properties by 'format'

* src/textprop.c (extend_property_ranges): Accept an additional
argument OLD_END, and only extend the end of a property range if
its original end is at OLD_END; all the other ranges are left
intact.  (Bug#23897)
* src/editfns.c (styled_format): Pass the original length of the
string to 'extend_property_ranges'.
* src/intervals.h (extend_property_ranges): Adjust prototype.

* test/src/editfns-tests.el (format-properties): Add tests for
bug#23897.
src/editfns.c
src/intervals.h
src/textprop.c
test/src/editfns-tests.el