diff options
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/src/buffer.c b/src/buffer.c index 36e842e84b0..d6c7f6db068 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -113,36 +113,16 @@ static void reset_buffer_local_variables (struct buffer *b, int permanent_too); to prevent lossage due to user rplac'ing this alist or its elements. */ Lisp_Object Vbuffer_alist; -/* Functions to call before and after each text change. */ -Lisp_Object Vbefore_change_functions; -Lisp_Object Vafter_change_functions; - -Lisp_Object Vtransient_mark_mode; - -/* t means ignore all read-only text properties. - A list means ignore such a property if its value is a member of the list. - Any non-nil value means ignore buffer-read-only. */ -Lisp_Object Vinhibit_read_only; - -/* List of functions to call that can query about killing a buffer. - If any of these functions returns nil, we don't kill it. */ -Lisp_Object Vkill_buffer_query_functions; Lisp_Object Qkill_buffer_query_functions; /* Hook run before changing a major mode. */ -Lisp_Object Vchange_major_mode_hook, Qchange_major_mode_hook; - -/* List of functions to call before changing an unmodified buffer. */ -Lisp_Object Vfirst_change_hook; +Lisp_Object Qchange_major_mode_hook; Lisp_Object Qfirst_change_hook; Lisp_Object Qbefore_change_functions; Lisp_Object Qafter_change_functions; Lisp_Object Qucs_set_table_for_input; -/* If nonzero, all modification hooks are suppressed. */ -int inhibit_modification_hooks; - Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; Lisp_Object Qpermanent_local_hook; @@ -5943,7 +5923,7 @@ between 0.0 and 1.0, inclusive. */); "Don't ask."); */ - DEFVAR_LISP ("before-change-functions", &Vbefore_change_functions, + DEFVAR_LISP ("before-change-functions", Vbefore_change_functions, doc: /* List of functions to call before each text change. Two arguments are passed to each function: the positions of the beginning and end of the range of old text to be changed. @@ -5959,7 +5939,7 @@ the variable's value remains nil. That prevents the error from happening repeatedly and making Emacs nonfunctional. */); Vbefore_change_functions = Qnil; - DEFVAR_LISP ("after-change-functions", &Vafter_change_functions, + DEFVAR_LISP ("after-change-functions", Vafter_change_functions, doc: /* List of functions to call after each text change. Three arguments are passed to each function: the positions of the beginning and end of the range of changed text, @@ -5977,7 +5957,7 @@ the variable's value remains nil. That prevents the error from happening repeatedly and making Emacs nonfunctional. */); Vafter_change_functions = Qnil; - DEFVAR_LISP ("first-change-hook", &Vfirst_change_hook, + DEFVAR_LISP ("first-change-hook", Vfirst_change_hook, doc: /* A list of functions to call before changing a buffer which is unmodified. The functions are run using the `run-hooks' function. */); Vfirst_change_hook = Qnil; @@ -6092,7 +6072,7 @@ The function `set-window-buffer' updates this variable to the value obtained by calling `current-time'. If the buffer has never been shown in a window, the value is nil. */); - DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode, + DEFVAR_LISP ("transient-mark-mode", Vtransient_mark_mode, doc: /* Non-nil if Transient Mark mode is enabled. See the command `transient-mark-mode' for a description of this minor mode. @@ -6113,7 +6093,7 @@ Lisp programs may give this variable certain special values: `transient-mark-mode' is set to OLDVAL. */); Vtransient_mark_mode = Qnil; - DEFVAR_LISP ("inhibit-read-only", &Vinhibit_read_only, + DEFVAR_LISP ("inhibit-read-only", Vinhibit_read_only, doc: /* *Non-nil means disregard read-only status of buffers or characters. If the value is t, disregard `buffer-read-only' and all `read-only' text properties. If the value is a list, disregard `buffer-read-only' @@ -6156,13 +6136,13 @@ If t, displays a cursor related to the usual cursor type You can also specify the cursor type as in the `cursor-type' variable. Use Custom to set this variable and update the display." */); - DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, + DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions, doc: /* List of functions called with no args to query before killing a buffer. The buffer being killed will be current while the functions are running. If any of them returns nil, the buffer is not killed. */); Vkill_buffer_query_functions = Qnil; - DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook, + DEFVAR_LISP ("change-major-mode-hook", Vchange_major_mode_hook, doc: /* Normal hook run before changing the major mode of a buffer. The function `kill-all-local-variables' runs this before doing anything else. */); Vchange_major_mode_hook = Qnil; |