aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 580d5f004cd..245fd1d9acb 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5703,19 +5703,20 @@ A string is printed verbatim in the mode line except for %-constructs:
5703Decimal digits after the % specify field width to which to pad. */); 5703Decimal digits after the % specify field width to which to pad. */);
5704 5704
5705 DEFVAR_LISP_NOPRO ("default-major-mode", &buffer_defaults.major_mode, 5705 DEFVAR_LISP_NOPRO ("default-major-mode", &buffer_defaults.major_mode,
5706 doc: /* *Major mode for new buffers. Defaults to `fundamental-mode'. 5706 doc: /* *Value of `major-mode' for new buffers. */);
5707A value of nil means use current buffer's major mode,
5708provided it is not marked as "special".
5709
5710When a mode is used by default, `find-file' switches to it
5711before it reads the contents into the buffer and before
5712it finishes setting up the buffer. Thus, the mode and
5713its hooks should not expect certain variables such as
5714`buffer-read-only' and `buffer-file-coding-system' to be set up. */);
5715 5707
5716 DEFVAR_PER_BUFFER ("major-mode", &current_buffer->major_mode, 5708 DEFVAR_PER_BUFFER ("major-mode", &current_buffer->major_mode,
5717 make_number (Lisp_Symbol), 5709 make_number (Lisp_Symbol),
5718 doc: /* Symbol for current buffer's major mode. */); 5710 doc: /* Symbol for current buffer's major mode.
5711The default value (normally `fundamental-mode') affects new buffers.
5712A value of nil means to use the current buffer's major mode, provided
5713it is not marked as "special".
5714
5715When a mode is used by default, `find-file' switches to it before it
5716reads the contents into the buffer and before it finishes setting up
5717the buffer. Thus, the mode and its hooks should not expect certain
5718variables such as `buffer-read-only' and `buffer-file-coding-system'
5719to be set up. */);
5719 5720
5720 DEFVAR_PER_BUFFER ("mode-name", &current_buffer->mode_name, 5721 DEFVAR_PER_BUFFER ("mode-name", &current_buffer->mode_name,
5721 Qnil, 5722 Qnil,