Stefan Monnier
40d8650d51
(Freplace_buffer_contents): Preserve markers more carefully
...
Use `replace_range` rather than `delete+insert`.
* src/insdel.c (replace_range): Allow NEW to specify a chunk
of buffer text.
* src/editfns.c (Freplace_buffer_contents): Use it.
* test/src/editfns-tests.el (replace-buffer-contents-1): Remove
incorrect check which happened to succeed because point was not
preserved carefully enough. Make the replacement text share a bit
more content to make the test a bit more strict.
(editfns-tests--replace-region): Doesn't fail any more.
2025-03-11 17:16:21 -04:00
..
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-02-23 03:46:57 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-02-28 20:20:55 +01:00
2025-02-23 00:38:22 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-03-11 17:16:21 -04:00
2025-02-17 22:46:56 +01:00
2025-01-22 11:04:57 -08:00
2025-01-02 18:39:42 +01:00
2025-02-23 03:46:57 +01:00
2025-01-02 18:39:42 +01:00
2025-02-17 05:37:10 +01:00
2025-03-01 10:01:52 -05:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-02-26 10:39:46 +08:00
2025-02-23 00:38:22 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-02-23 00:38:22 +01:00
2025-02-23 01:34:46 +01:00
2025-02-28 21:06:48 +08:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-13 01:05:42 +01:00
2025-02-17 13:38:15 -08:00
2025-02-17 05:37:10 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00