aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/buffer.c b/src/buffer.c
index c03263a5dab..fa7d74bb6c0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -148,10 +148,6 @@ Lisp_Object Qinsert_behind_hooks;
148/* For debugging; temporary. See set_buffer_internal. */ 148/* For debugging; temporary. See set_buffer_internal. */
149/* Lisp_Object Qlisp_mode, Vcheck_symbol; */ 149/* Lisp_Object Qlisp_mode, Vcheck_symbol; */
150 150
151#ifdef MSDOS
152Lisp_Object Qbuffer_file_type;
153#endif
154
155nsberror (spec) 151nsberror (spec)
156 Lisp_Object spec; 152 Lisp_Object spec;
157{ 153{
@@ -2589,10 +2585,13 @@ Two arguments are passed to the function: the positions of\n\
2589the beginning and end of the range of old text to be changed.\n\ 2585the beginning and end of the range of old text to be changed.\n\
2590\(For an insertion, the beginning and end are at the same place.)\n\ 2586\(For an insertion, the beginning and end are at the same place.)\n\
2591No information is given about the length of the text after the change.\n\ 2587No information is given about the length of the text after the change.\n\
2592position of the change\n\
2593\n\ 2588\n\
2594Buffer changes made while executing the `before-change-function'\n\ 2589Buffer changes made while executing the `before-change-function'\n\
2595don't call any before-change or after-change functions."); 2590don't call any before-change or after-change functions.\n\
2591That's because these variables are temporarily set to nil.\n\
2592As a result, a hook function cannot straightforwardly alter the value of\n\
2593these variables. See the Emacs Lisp manual for a way of\n\
2594accomplishing an equivalent result by using other variables.")
2596 Vbefore_change_function = Qnil; 2595 Vbefore_change_function = Qnil;
2597 2596
2598 DEFVAR_LISP ("after-change-function", &Vafter_change_function, 2597 DEFVAR_LISP ("after-change-function", &Vafter_change_function,
@@ -2605,7 +2604,11 @@ for a deletion, that length is the number of characters deleted,\n\
2605and the post-change beginning and end are at the same place.)\n\ 2604and the post-change beginning and end are at the same place.)\n\
2606\n\ 2605\n\
2607Buffer changes made while executing the `after-change-function'\n\ 2606Buffer changes made while executing the `after-change-function'\n\
2608don't call any before-change or after-change functions."); 2607don't call any before-change or after-change functions.\n\
2608That's because these variables are temporarily set to nil.\n\
2609As a result, a hook function cannot straightforwardly alter the value of\n\
2610these variables. See the Emacs Lisp manual for a way of\n\
2611accomplishing an equivalent result by using other variables.")
2609 Vafter_change_function = Qnil; 2612 Vafter_change_function = Qnil;
2610 2613
2611 DEFVAR_LISP ("before-change-functions", &Vbefore_change_functions, 2614 DEFVAR_LISP ("before-change-functions", &Vbefore_change_functions,
@@ -2614,10 +2617,13 @@ Two arguments are passed to each function: the positions of\n\
2614the beginning and end of the range of old text to be changed.\n\ 2617the beginning and end of the range of old text to be changed.\n\
2615\(For an insertion, the beginning and end are at the same place.)\n\ 2618\(For an insertion, the beginning and end are at the same place.)\n\
2616No information is given about the length of the text after the change.\n\ 2619No information is given about the length of the text after the change.\n\
2617position of the change\n\
2618\n\ 2620\n\
2619Buffer changes made while executing the `before-change-functions'\n\ 2621Buffer changes made while executing the `before-change-functions'\n\
2620don't call any before-change or after-change functions."); 2622don't call any before-change or after-change functions.\n\
2623That's because these variables are temporarily set to nil.\n\
2624As a result, a hook function cannot straightforwardly alter the value of\n\
2625these variables. See the Emacs Lisp manual for a way of\n\
2626accomplishing an equivalent result by using other variables.")
2621 Vbefore_change_functions = Qnil; 2627 Vbefore_change_functions = Qnil;
2622 2628
2623 DEFVAR_LISP ("after-change-functions", &Vafter_change_functions, 2629 DEFVAR_LISP ("after-change-functions", &Vafter_change_functions,
@@ -2630,7 +2636,12 @@ for a deletion, that length is the number of characters deleted,\n\
2630and the post-change beginning and end are at the same place.)\n\ 2636and the post-change beginning and end are at the same place.)\n\
2631\n\ 2637\n\
2632Buffer changes made while executing the `after-change-functions'\n\ 2638Buffer changes made while executing the `after-change-functions'\n\
2633don't call any before-change or after-change functions."); 2639don't call any before-change or after-change functions.\n\
2640That's because these variables are temporarily set to nil.\n\
2641As a result, a hook function cannot straightforwardly alter the value of\n\
2642these variables. See the Emacs Lisp manual for a way of\n\
2643accomplishing an equivalent result by using other variables.")
2644
2634 Vafter_change_functions = Qnil; 2645 Vafter_change_functions = Qnil;
2635 2646
2636 DEFVAR_LISP ("first-change-hook", &Vfirst_change_hook, 2647 DEFVAR_LISP ("first-change-hook", &Vfirst_change_hook,