diff options
| author | Richard M. Stallman | 1996-01-30 19:58:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-30 19:58:24 +0000 |
| commit | af209db8bdd82abe48050de5f5363925de5566c1 (patch) | |
| tree | 7b7ab404abd318d9e960ae7216f3c6640c65c1ec /src | |
| parent | 9fb026ab836daf0a4a97ec027c2b286b9a31bea5 (diff) | |
| download | emacs-af209db8bdd82abe48050de5f5363925de5566c1.tar.gz emacs-af209db8bdd82abe48050de5f5363925de5566c1.zip | |
(syms_of_editfns): Make buffer-access-fontify-functions
locally nil in the prin1 buffer.
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\ |