diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 21 |
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: | |||
| 5703 | Decimal digits after the % specify field width to which to pad. */); | 5703 | Decimal 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. */); |
| 5707 | A value of nil means use current buffer's major mode, | ||
| 5708 | provided it is not marked as "special". | ||
| 5709 | |||
| 5710 | When a mode is used by default, `find-file' switches to it | ||
| 5711 | before it reads the contents into the buffer and before | ||
| 5712 | it finishes setting up the buffer. Thus, the mode and | ||
| 5713 | its 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", ¤t_buffer->major_mode, | 5708 | DEFVAR_PER_BUFFER ("major-mode", ¤t_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. |
| 5711 | The default value (normally `fundamental-mode') affects new buffers. | ||
| 5712 | A value of nil means to use the current buffer's major mode, provided | ||
| 5713 | it is not marked as "special". | ||
| 5714 | |||
| 5715 | When a mode is used by default, `find-file' switches to it before it | ||
| 5716 | reads the contents into the buffer and before it finishes setting up | ||
| 5717 | the buffer. Thus, the mode and its hooks should not expect certain | ||
| 5718 | variables such as `buffer-read-only' and `buffer-file-coding-system' | ||
| 5719 | to be set up. */); | ||
| 5719 | 5720 | ||
| 5720 | DEFVAR_PER_BUFFER ("mode-name", ¤t_buffer->mode_name, | 5721 | DEFVAR_PER_BUFFER ("mode-name", ¤t_buffer->mode_name, |
| 5721 | Qnil, | 5722 | Qnil, |