Commit b3b58c01 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(del_range_2): Don't modify gap contents when called

from decode_coding_object.  (Bug#1809)
parent e636d913
2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
* insdel.c (del_range_2): Don't modify gap contents when called
from decode_coding_object. (Bug#1809)
2009-02-21 Chong Yidong <cyd@stupidchicken.com>
* data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
......
......@@ -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 ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment