]> git.eshelyaron.com Git - emacs.git/commitdiff
(run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Nov 2004 03:18:31 +0000 (03:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Nov 2004 03:18:31 +0000 (03:18 +0000)
src/coding.c

index 0c99054d47bd8828b53ac5e9268b0208a195d5fc..b521d100989b73dc06c3b40fba4f07f27ef3516f 100644 (file)
@@ -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.  */