diff options
author | Andreas Schwab <schwab@suse.de> | 2009-02-22 14:29:25 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2009-02-22 14:29:25 +0000 |
commit | b3b58c01900f2c028f00d4aa8d432cdc53f072be (patch) | |
tree | e66db6bfcd52c108de569a3e0a53c6f9bee21e9e /src/insdel.c | |
parent | e636d913fd7bc97356d754e9591aa8bc9befa808 (diff) | |
download | emacs-b3b58c01900f2c028f00d4aa8d432cdc53f072be.tar.gz |
(del_range_2): Don't modify gap contents when called
from decode_coding_object. (Bug#1809)
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c index d8e9e99d55a..814d1571d39 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -2006,7 +2006,10 @@ del_range_2 (from, from_byte, to, to_byte, ret_string) Z -= nchars_del; GPT = from; GPT_BYTE = from_byte; - if (GAP_SIZE > 0) *(GPT_ADDR) = 0; /* Put an anchor. */ + if (GAP_SIZE > 0 && !current_buffer->text->inhibit_shrinking) + /* Put an anchor, unless called from decode_coding_object which + needs to access the previous gap contents. */ + *(GPT_ADDR) = 0; if (GPT_BYTE < GPT) abort (); |