diff options
| author | Glenn Morris | 2009-09-02 03:11:15 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-09-02 03:11:15 +0000 |
| commit | 5a021dd0620ee9ab54baa226af1cf652e429f3ec (patch) | |
| tree | 2c6212e36d8e4831ed5559a150b0bad2da7d3fb1 /src | |
| parent | 6e2ca8951544bcca9a5f098f08f4c3d7bf2a2ee6 (diff) | |
| download | emacs-5a021dd0620ee9ab54baa226af1cf652e429f3ec.tar.gz emacs-5a021dd0620ee9ab54baa226af1cf652e429f3ec.zip | |
(default-major-mode): Move most of the doc from here...
(major-mode): ... to here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/buffer.c | 21 |
2 files changed, 16 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 814f7f7b160..29943f4e370 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-09-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * buffer.c (default-major-mode): Move most of the doc from here... | ||
| 4 | (major-mode): ... to here. | ||
| 5 | |||
| 1 | 2009-08-30 Nick Roberts <nickrob@snap.net.nz> | 6 | 2009-08-30 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 7 | ||
| 3 | * process.c (wait_reading_process_output): Keep the descriptor | 8 | * process.c (wait_reading_process_output): Keep the descriptor |
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, |