diff options
| author | Richard M. Stallman | 1995-08-05 22:57:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-05 22:57:46 +0000 |
| commit | 2237866508a22413587f2ab9f80633be3db683eb (patch) | |
| tree | ad2c72f368cd8a4306c4b8607cc3ffa5ecf4d2d3 /src/buffer.c | |
| parent | 3d1e2d9c911cf455f6f31fd501d30de961910fc4 (diff) | |
| download | emacs-2237866508a22413587f2ab9f80633be3db683eb.tar.gz emacs-2237866508a22413587f2ab9f80633be3db683eb.zip | |
(Qbefore_change_functions, Qafter_change_functions): New variables.
(syms_of_buffer): Initialize them.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/buffer.c b/src/buffer.c index ee7dce84a5b..f0bd7013e50 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -128,7 +128,10 @@ Lisp_Object Vkill_buffer_query_functions; | |||
| 128 | 128 | ||
| 129 | /* List of functions to call before changing an unmodified buffer. */ | 129 | /* List of functions to call before changing an unmodified buffer. */ |
| 130 | Lisp_Object Vfirst_change_hook; | 130 | Lisp_Object Vfirst_change_hook; |
| 131 | |||
| 131 | Lisp_Object Qfirst_change_hook; | 132 | Lisp_Object Qfirst_change_hook; |
| 133 | Lisp_Object Qbefore_change_functions; | ||
| 134 | Lisp_Object Qafter_change_functions; | ||
| 132 | 135 | ||
| 133 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | 136 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; |
| 134 | 137 | ||
| @@ -3428,17 +3431,18 @@ syms_of_buffer () | |||
| 3428 | staticpro (&Qprotected_field); | 3431 | staticpro (&Qprotected_field); |
| 3429 | staticpro (&Qpermanent_local); | 3432 | staticpro (&Qpermanent_local); |
| 3430 | staticpro (&Qkill_buffer_hook); | 3433 | staticpro (&Qkill_buffer_hook); |
| 3434 | Qoverlayp = intern ("overlayp"); | ||
| 3431 | staticpro (&Qoverlayp); | 3435 | staticpro (&Qoverlayp); |
| 3432 | Qevaporate = intern ("evaporate"); | 3436 | Qevaporate = intern ("evaporate"); |
| 3433 | staticpro (&Qevaporate); | 3437 | staticpro (&Qevaporate); |
| 3434 | staticpro (&Qmodification_hooks); | ||
| 3435 | Qmodification_hooks = intern ("modification-hooks"); | 3438 | Qmodification_hooks = intern ("modification-hooks"); |
| 3436 | staticpro (&Qinsert_in_front_hooks); | 3439 | staticpro (&Qmodification_hooks); |
| 3437 | Qinsert_in_front_hooks = intern ("insert-in-front-hooks"); | 3440 | Qinsert_in_front_hooks = intern ("insert-in-front-hooks"); |
| 3438 | staticpro (&Qinsert_behind_hooks); | 3441 | staticpro (&Qinsert_in_front_hooks); |
| 3439 | Qinsert_behind_hooks = intern ("insert-behind-hooks"); | 3442 | Qinsert_behind_hooks = intern ("insert-behind-hooks"); |
| 3440 | staticpro (&Qget_file_buffer); | 3443 | staticpro (&Qinsert_behind_hooks); |
| 3441 | Qget_file_buffer = intern ("get-file-buffer"); | 3444 | Qget_file_buffer = intern ("get-file-buffer"); |
| 3445 | staticpro (&Qget_file_buffer); | ||
| 3442 | Qpriority = intern ("priority"); | 3446 | Qpriority = intern ("priority"); |
| 3443 | staticpro (&Qpriority); | 3447 | staticpro (&Qpriority); |
| 3444 | Qwindow = intern ("window"); | 3448 | Qwindow = intern ("window"); |
| @@ -3447,8 +3451,12 @@ syms_of_buffer () | |||
| 3447 | staticpro (&Qbefore_string); | 3451 | staticpro (&Qbefore_string); |
| 3448 | Qafter_string = intern ("after-string"); | 3452 | Qafter_string = intern ("after-string"); |
| 3449 | staticpro (&Qafter_string); | 3453 | staticpro (&Qafter_string); |
| 3450 | 3454 | Qfirst_change_hook = intern ("first-change-hook"); | |
| 3451 | Qoverlayp = intern ("overlayp"); | 3455 | staticpro (&Qfirst_change_hook); |
| 3456 | Qbefore_change_functions = intern ("before-change-functions"); | ||
| 3457 | staticpro (&Qbefore_change_functions); | ||
| 3458 | Qafter_change_functions = intern ("after-change-functions"); | ||
| 3459 | staticpro (&Qafter_change_functions); | ||
| 3452 | 3460 | ||
| 3453 | Fput (Qprotected_field, Qerror_conditions, | 3461 | Fput (Qprotected_field, Qerror_conditions, |
| 3454 | Fcons (Qprotected_field, Fcons (Qerror, Qnil))); | 3462 | Fcons (Qprotected_field, Fcons (Qerror, Qnil))); |
| @@ -3780,8 +3788,6 @@ accomplishing an equivalent result by using other variables."); | |||
| 3780 | "A list of functions to call before changing a buffer which is unmodified.\n\ | 3788 | "A list of functions to call before changing a buffer which is unmodified.\n\ |
| 3781 | The functions are run using the `run-hooks' function."); | 3789 | The functions are run using the `run-hooks' function."); |
| 3782 | Vfirst_change_hook = Qnil; | 3790 | Vfirst_change_hook = Qnil; |
| 3783 | Qfirst_change_hook = intern ("first-change-hook"); | ||
| 3784 | staticpro (&Qfirst_change_hook); | ||
| 3785 | 3791 | ||
| 3786 | #if 0 /* The doc string is too long for some compilers, | 3792 | #if 0 /* The doc string is too long for some compilers, |
| 3787 | but make-docfile can find it in this comment. */ | 3793 | but make-docfile can find it in this comment. */ |