diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 51 |
1 files changed, 18 insertions, 33 deletions
diff --git a/src/buffer.c b/src/buffer.c index 238923a2ba0..006153b0424 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5209,39 +5209,26 @@ syms_of_buffer (void) | |||
| 5209 | staticpro (&Vbuffer_alist); | 5209 | staticpro (&Vbuffer_alist); |
| 5210 | staticpro (&Qprotected_field); | 5210 | staticpro (&Qprotected_field); |
| 5211 | staticpro (&Qpermanent_local); | 5211 | staticpro (&Qpermanent_local); |
| 5212 | Qpermanent_local_hook = intern_c_string ("permanent-local-hook"); | ||
| 5213 | staticpro (&Qpermanent_local_hook); | ||
| 5214 | staticpro (&Qkill_buffer_hook); | 5212 | staticpro (&Qkill_buffer_hook); |
| 5215 | Qoverlayp = intern_c_string ("overlayp"); | 5213 | |
| 5216 | staticpro (&Qoverlayp); | 5214 | DEFSYM (Qpermanent_local_hook, "permanent-local-hook"); |
| 5217 | Qevaporate = intern_c_string ("evaporate"); | 5215 | DEFSYM (Qoverlayp, "overlayp"); |
| 5218 | staticpro (&Qevaporate); | 5216 | DEFSYM (Qevaporate, "evaporate"); |
| 5219 | Qmodification_hooks = intern_c_string ("modification-hooks"); | 5217 | DEFSYM (Qmodification_hooks, "modification-hooks"); |
| 5220 | staticpro (&Qmodification_hooks); | 5218 | DEFSYM (Qinsert_in_front_hooks, "insert-in-front-hooks"); |
| 5221 | Qinsert_in_front_hooks = intern_c_string ("insert-in-front-hooks"); | 5219 | DEFSYM (Qinsert_behind_hooks, "insert-behind-hooks"); |
| 5222 | staticpro (&Qinsert_in_front_hooks); | 5220 | DEFSYM (Qget_file_buffer, "get-file-buffer"); |
| 5223 | Qinsert_behind_hooks = intern_c_string ("insert-behind-hooks"); | 5221 | DEFSYM (Qpriority, "priority"); |
| 5224 | staticpro (&Qinsert_behind_hooks); | 5222 | DEFSYM (Qbefore_string, "before-string"); |
| 5225 | Qget_file_buffer = intern_c_string ("get-file-buffer"); | 5223 | DEFSYM (Qafter_string, "after-string"); |
| 5226 | staticpro (&Qget_file_buffer); | 5224 | DEFSYM (Qfirst_change_hook, "first-change-hook"); |
| 5227 | Qpriority = intern_c_string ("priority"); | 5225 | DEFSYM (Qbefore_change_functions, "before-change-functions"); |
| 5228 | staticpro (&Qpriority); | 5226 | DEFSYM (Qafter_change_functions, "after-change-functions"); |
| 5229 | Qbefore_string = intern_c_string ("before-string"); | 5227 | DEFSYM (Qkill_buffer_query_functions, "kill-buffer-query-functions"); |
| 5230 | staticpro (&Qbefore_string); | 5228 | |
| 5231 | Qafter_string = intern_c_string ("after-string"); | ||
| 5232 | staticpro (&Qafter_string); | ||
| 5233 | Qfirst_change_hook = intern_c_string ("first-change-hook"); | ||
| 5234 | staticpro (&Qfirst_change_hook); | ||
| 5235 | Qbefore_change_functions = intern_c_string ("before-change-functions"); | ||
| 5236 | staticpro (&Qbefore_change_functions); | ||
| 5237 | Qafter_change_functions = intern_c_string ("after-change-functions"); | ||
| 5238 | staticpro (&Qafter_change_functions); | ||
| 5239 | /* The next one is initialized in init_buffer_once. */ | 5229 | /* The next one is initialized in init_buffer_once. */ |
| 5240 | staticpro (&Qucs_set_table_for_input); | 5230 | staticpro (&Qucs_set_table_for_input); |
| 5241 | 5231 | ||
| 5242 | Qkill_buffer_query_functions = intern_c_string ("kill-buffer-query-functions"); | ||
| 5243 | staticpro (&Qkill_buffer_query_functions); | ||
| 5244 | |||
| 5245 | Fput (Qprotected_field, Qerror_conditions, | 5232 | Fput (Qprotected_field, Qerror_conditions, |
| 5246 | pure_cons (Qprotected_field, pure_cons (Qerror, Qnil))); | 5233 | pure_cons (Qprotected_field, pure_cons (Qerror, Qnil))); |
| 5247 | Fput (Qprotected_field, Qerror_message, | 5234 | Fput (Qprotected_field, Qerror_message, |
| @@ -6035,8 +6022,7 @@ If any of them returns nil, the buffer is not killed. */); | |||
| 6035 | doc: /* Normal hook run before changing the major mode of a buffer. | 6022 | doc: /* Normal hook run before changing the major mode of a buffer. |
| 6036 | The function `kill-all-local-variables' runs this before doing anything else. */); | 6023 | The function `kill-all-local-variables' runs this before doing anything else. */); |
| 6037 | Vchange_major_mode_hook = Qnil; | 6024 | Vchange_major_mode_hook = Qnil; |
| 6038 | Qchange_major_mode_hook = intern_c_string ("change-major-mode-hook"); | 6025 | DEFSYM (Qchange_major_mode_hook, "change-major-mode-hook"); |
| 6039 | staticpro (&Qchange_major_mode_hook); | ||
| 6040 | 6026 | ||
| 6041 | DEFVAR_LISP ("buffer-list-update-hook", Vbuffer_list_update_hook, | 6027 | DEFVAR_LISP ("buffer-list-update-hook", Vbuffer_list_update_hook, |
| 6042 | doc: /* Hook run when the buffer list changes. | 6028 | doc: /* Hook run when the buffer list changes. |
| @@ -6044,8 +6030,7 @@ Functions running this hook are `get-buffer-create', | |||
| 6044 | `make-indirect-buffer', `rename-buffer', `kill-buffer', | 6030 | `make-indirect-buffer', `rename-buffer', `kill-buffer', |
| 6045 | `record-buffer' and `unrecord-buffer'. */); | 6031 | `record-buffer' and `unrecord-buffer'. */); |
| 6046 | Vbuffer_list_update_hook = Qnil; | 6032 | Vbuffer_list_update_hook = Qnil; |
| 6047 | Qbuffer_list_update_hook = intern_c_string ("buffer-list-update-hook"); | 6033 | DEFSYM (Qbuffer_list_update_hook, "buffer-list-update-hook"); |
| 6048 | staticpro (&Qbuffer_list_update_hook); | ||
| 6049 | 6034 | ||
| 6050 | defsubr (&Sbuffer_live_p); | 6035 | defsubr (&Sbuffer_live_p); |
| 6051 | defsubr (&Sbuffer_list); | 6036 | defsubr (&Sbuffer_list); |