[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r114208: * src/insdel.c (insert_from_buffer_1): Don'
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] trunk r114208: * src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when |
Date: |
Wed, 11 Sep 2013 12:28:32 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 114208
revision-id: address@hidden
parent: address@hidden
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Wed 2013-09-11 08:28:01 -0400
message:
* src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when
insert-buffer-substring an empty string.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/insdel.c insdel.c-20091113204419-o5vbwnq5f7feedwu-175
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-09-11 10:24:48 +0000
+++ b/src/ChangeLog 2013-09-11 12:28:01 +0000
@@ -1,3 +1,8 @@
+2013-09-11 Stefan Monnier <address@hidden>
+
+ * insdel.c (insert_from_buffer_1): Don't mark buffer as modified when
+ insert-buffer-substring an empty string.
+
2013-09-11 Paul Eggert <address@hidden>
* xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out,
=== modified file 'src/insdel.c'
--- a/src/insdel.c 2013-08-06 06:53:09 +0000
+++ b/src/insdel.c 2013-09-11 12:28:01 +0000
@@ -1057,6 +1057,9 @@
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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r114208: * src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when,
Stefan Monnier <=