Mercurial > emacs
comparison src/editfns.c @ 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 | dfdf939f3e8c |
children | e368c0d12356 |
comparison
equal
deleted
inserted
replaced
14439:201ccc109ce7 | 14440:e99b3302c154 |
---|---|
2385 "List of functions called by `buffer-substring' to fontify if necessary.\n\ | 2385 "List of functions called by `buffer-substring' to fontify if necessary.\n\ |
2386 Each function is called with two arguments which specify the range\n\ | 2386 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\ |
2393 `buffer-substring' need not call the `buffer-access-fontify-functions'\n\ | 2405 `buffer-substring' need not call the `buffer-access-fontify-functions'\n\ |
2394 functions if all the text being accessed has this property."); | 2406 functions if all the text being accessed has this property."); |