1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00

* src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when

insert-buffer-substring an empty string.
This commit is contained in:
Stefan Monnier 2013-09-11 08:28:01 -04:00
parent f5dacaaec0
commit 71b28baa2b
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
* insdel.c (insert_from_buffer_1): Don't mark buffer as modified when
insert-buffer-substring an empty string.
2013-09-11 Paul Eggert <eggert@cs.ucla.edu>
* xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out,

View file

@ -1057,6 +1057,9 @@ insert_from_buffer_1 (struct buffer *buf,
ptrdiff_t outgoing_nbytes = incoming_nbytes;
INTERVAL intervals;
if (nchars == 0)
return;
/* Make OUTGOING_NBYTES describe the text
as it will be inserted in this buffer. */