aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4a78b568176..4057fffbf7d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -112,8 +112,9 @@ Lisp_Object Vbuffer_alist;
112Lisp_Object Vbefore_change_function; 112Lisp_Object Vbefore_change_function;
113Lisp_Object Vafter_change_function; 113Lisp_Object Vafter_change_function;
114 114
115/* Function to call before changing an unmodified buffer. */ 115/* List of functions to call before changing an unmodified buffer. */
116Lisp_Object Vfirst_change_function; 116Lisp_Object Vfirst_change_hook;
117Lisp_Object Qfirst_change_hook;
117 118
118Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; 119Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local;
119 120
@@ -1655,10 +1656,12 @@ While executing the `after-change-function', changes to buffers do not\n\
1655cause calls to any `before-change-function' or `after-change-function'."); 1656cause calls to any `before-change-function' or `after-change-function'.");
1656 Vafter_change_function = Qnil; 1657 Vafter_change_function = Qnil;
1657 1658
1658 DEFVAR_LISP ("first-change-function", &Vfirst_change_function, 1659 DEFVAR_LISP ("first-change-hook", &Vfirst_change_hook,
1659 "Function to call before changing a buffer which is unmodified.\n\ 1660 "A list of functions to call before changing a buffer which is unmodified.\n\
1660The function is called, with no arguments, if it is non-nil."); 1661The functions are run using the `run-hooks' function.");
1661 Vfirst_change_function = Qnil; 1662 Vfirst_change_hook = Qnil;
1663 Qfirst_change_hook = intern ("first-change-hook");
1664 staticpro (&Qfirst_change_hook);
1662 1665
1663 DEFVAR_PER_BUFFER ("buffer-undo-list", &current_buffer->undo_list, Qnil, 1666 DEFVAR_PER_BUFFER ("buffer-undo-list", &current_buffer->undo_list, Qnil,
1664 "List of undo entries in current buffer.\n\ 1667 "List of undo entries in current buffer.\n\