diff options
| author | Andreas Schwab | 2008-03-03 22:29:12 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2008-03-03 22:29:12 +0000 |
| commit | f4a3cc44334f7b0a8a09723956f58771472ae9f6 (patch) | |
| tree | a17dc473a003884dda9fe52f4baa3552631fddeb /src/coding.c | |
| parent | 1b6bf70a95cca81cade00437ec6c924fe8341f92 (diff) | |
| download | emacs-f4a3cc44334f7b0a8a09723956f58771472ae9f6.tar.gz emacs-f4a3cc44334f7b0a8a09723956f58771472ae9f6.zip | |
(decode_coding_object): Inhibit gap shrinking while
decoding in place.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index d021a173a78..e6f544c8f87 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -6925,6 +6925,7 @@ decode_coding_object (coding, src_object, from, from_byte, to, to_byte, | |||
| 6925 | } | 6925 | } |
| 6926 | saved_pt = PT, saved_pt_byte = PT_BYTE; | 6926 | saved_pt = PT, saved_pt_byte = PT_BYTE; |
| 6927 | TEMP_SET_PT_BOTH (from, from_byte); | 6927 | TEMP_SET_PT_BOTH (from, from_byte); |
| 6928 | current_buffer->text->inhibit_shrinking = 1; | ||
| 6928 | del_range_both (from, from_byte, to, to_byte, 1); | 6929 | del_range_both (from, from_byte, to, to_byte, 1); |
| 6929 | coding->src_pos = -chars; | 6930 | coding->src_pos = -chars; |
| 6930 | coding->src_pos_byte = -bytes; | 6931 | coding->src_pos_byte = -bytes; |
| @@ -7018,6 +7019,7 @@ decode_coding_object (coding, src_object, from, from_byte, to, to_byte, | |||
| 7018 | As we have moved PT while replacing the original buffer | 7019 | As we have moved PT while replacing the original buffer |
| 7019 | contents, we must recover it now. */ | 7020 | contents, we must recover it now. */ |
| 7020 | set_buffer_internal (XBUFFER (src_object)); | 7021 | set_buffer_internal (XBUFFER (src_object)); |
| 7022 | current_buffer->text->inhibit_shrinking = 0; | ||
| 7021 | if (saved_pt < from) | 7023 | if (saved_pt < from) |
| 7022 | TEMP_SET_PT_BOTH (saved_pt, saved_pt_byte); | 7024 | TEMP_SET_PT_BOTH (saved_pt, saved_pt_byte); |
| 7023 | else if (saved_pt < from + chars) | 7025 | else if (saved_pt < from + chars) |