diff options
| author | Jim Blandy | 1993-01-26 01:58:16 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-01-26 01:58:16 +0000 |
| commit | dbc4e1c12940079cad7b24e1654a0badcda8d6fc (patch) | |
| tree | e0fbea5b15bd13d2839c8b59b624cec80f31bfd8 /src/buffer.c | |
| parent | 72766144811cd7258b2a59e56f6e3657537ea508 (diff) | |
| download | emacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.tar.gz emacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.zip | |
JimB's changes since January 18th
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 15 |
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; | |||
| 112 | Lisp_Object Vbefore_change_function; | 112 | Lisp_Object Vbefore_change_function; |
| 113 | Lisp_Object Vafter_change_function; | 113 | Lisp_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. */ |
| 116 | Lisp_Object Vfirst_change_function; | 116 | Lisp_Object Vfirst_change_hook; |
| 117 | Lisp_Object Qfirst_change_hook; | ||
| 117 | 118 | ||
| 118 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | 119 | Lisp_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\ | |||
| 1655 | cause calls to any `before-change-function' or `after-change-function'."); | 1656 | cause 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\ |
| 1660 | The function is called, with no arguments, if it is non-nil."); | 1661 | The 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", ¤t_buffer->undo_list, Qnil, | 1666 | DEFVAR_PER_BUFFER ("buffer-undo-list", ¤t_buffer->undo_list, Qnil, |
| 1664 | "List of undo entries in current buffer.\n\ | 1667 | "List of undo entries in current buffer.\n\ |