diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/insdel.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d53b29bbffb..0e75c26a763 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-02-22 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * insdel.c (del_range_2): Don't modify gap contents when called | ||
| 4 | from decode_coding_object. (Bug#1809) | ||
| 5 | |||
| 1 | 2009-02-21 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-02-21 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and | 8 | * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and |
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) | |||
| 2006 | Z -= nchars_del; | 2006 | Z -= nchars_del; |
| 2007 | GPT = from; | 2007 | GPT = from; |
| 2008 | GPT_BYTE = from_byte; | 2008 | GPT_BYTE = from_byte; |
| 2009 | if (GAP_SIZE > 0) *(GPT_ADDR) = 0; /* Put an anchor. */ | 2009 | if (GAP_SIZE > 0 && !current_buffer->text->inhibit_shrinking) |
| 2010 | /* Put an anchor, unless called from decode_coding_object which | ||
| 2011 | needs to access the previous gap contents. */ | ||
| 2012 | *(GPT_ADDR) = 0; | ||
| 2010 | 2013 | ||
| 2011 | if (GPT_BYTE < GPT) | 2014 | if (GPT_BYTE < GPT) |
| 2012 | abort (); | 2015 | abort (); |