changeset 14440:e99b3302c154

(syms_of_editfns): Make buffer-access-fontify-functions locally nil in the prin1 buffer.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Jan 1996 19:58:24 +0000
parents 201ccc109ce7
children a29eda7ceb21
files src/editfns.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Tue Jan 30 19:51:26 1996 +0000
+++ b/src/editfns.c	Tue Jan 30 19:58:24 1996 +0000
@@ -2387,6 +2387,18 @@
 of the buffer being accessed.");
   Vbuffer_access_fontify_functions = Qnil;
 
+  {
+    Lisp_Object obuf;
+    extern Lisp_Object Vprin1_to_string_buffer;
+    obuf = Fcurrent_buffer ();
+    /* Do this here, because init_buffer_once is too early--it won't work.  */
+    Fset_buffer (Vprin1_to_string_buffer);
+    /* Make sure buffer-access-fontify-functions is nil in this buffer.  */
+    Fset (Fmake_local_variable (intern ("buffer-access-fontify-functions")),
+	  Qnil);
+    Fset_buffer (obuf);
+  }
+
   DEFVAR_LISP ("buffer-access-fontified-property",
 	       &Vbuffer_access_fontified_property,
        "Property which (if non-nil) indicates text has been fontified.\n\