summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-11-25 03:18:31 +0000
committerRichard M. Stallman <rms@gnu.org>2004-11-25 03:18:31 +0000
commit8e7a47862a147c640a7ec1237c39d7ad6f78f5c9 (patch)
tree5501eb23c231fbcee2fa32994200581908035720 /src/coding.c
parent79e3497d3fb13b32cc2dc39ed16787af7ec21b1c (diff)
downloademacs-8e7a47862a147c640a7ec1237c39d7ad6f78f5c9.tar.gz
(run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 0c99054d47b..b521d100989 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6040,6 +6040,8 @@ run_pre_post_conversion_on_str (str, coding, encodep)
eassert (buf->overlays_after == NULL);
set_buffer_internal (buf);
+ /* Don't let Ferase_buffer stumble due to text props. */
+ specbind (Qinhibit_read_only, Qt);
/* We must insert the contents of STR as is without
unibyte<->multibyte conversion. For that, we adjust the
multibyteness of the working buffer to that of STR. */