diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c index 6f1899782c3..73166f9d9d5 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2387,6 +2387,18 @@ Each function is called with two arguments which specify the range\n\ | |||
| 2387 | of the buffer being accessed."); | 2387 | of the buffer being accessed."); |
| 2388 | Vbuffer_access_fontify_functions = Qnil; | 2388 | Vbuffer_access_fontify_functions = Qnil; |
| 2389 | 2389 | ||
| 2390 | { | ||
| 2391 | Lisp_Object obuf; | ||
| 2392 | extern Lisp_Object Vprin1_to_string_buffer; | ||
| 2393 | obuf = Fcurrent_buffer (); | ||
| 2394 | /* Do this here, because init_buffer_once is too early--it won't work. */ | ||
| 2395 | Fset_buffer (Vprin1_to_string_buffer); | ||
| 2396 | /* Make sure buffer-access-fontify-functions is nil in this buffer. */ | ||
| 2397 | Fset (Fmake_local_variable (intern ("buffer-access-fontify-functions")), | ||
| 2398 | Qnil); | ||
| 2399 | Fset_buffer (obuf); | ||
| 2400 | } | ||
| 2401 | |||
| 2390 | DEFVAR_LISP ("buffer-access-fontified-property", | 2402 | DEFVAR_LISP ("buffer-access-fontified-property", |
| 2391 | &Vbuffer_access_fontified_property, | 2403 | &Vbuffer_access_fontified_property, |
| 2392 | "Property which (if non-nil) indicates text has been fontified.\n\ | 2404 | "Property which (if non-nil) indicates text has been fontified.\n\ |