# HG changeset patch # User Glenn Morris # Date 1251861075 0 # Node ID e5f506a6a59d22120ba9fdd199075064812cadd0 # Parent 07bf8d62f7a52bc30d6fa492ddbdd615d974f96a (default-major-mode): Move most of the doc from here... (major-mode): ... to here. diff -r 07bf8d62f7a5 -r e5f506a6a59d src/ChangeLog --- a/src/ChangeLog Wed Sep 02 03:09:10 2009 +0000 +++ b/src/ChangeLog Wed Sep 02 03:11:15 2009 +0000 @@ -1,3 +1,8 @@ +2009-09-02 Glenn Morris + + * buffer.c (default-major-mode): Move most of the doc from here... + (major-mode): ... to here. + 2009-08-30 Nick Roberts * process.c (wait_reading_process_output): Keep the descriptor diff -r 07bf8d62f7a5 -r e5f506a6a59d src/buffer.c --- a/src/buffer.c Wed Sep 02 03:09:10 2009 +0000 +++ b/src/buffer.c Wed Sep 02 03:11:15 2009 +0000 @@ -5703,19 +5703,20 @@ Decimal digits after the % specify field width to which to pad. */); DEFVAR_LISP_NOPRO ("default-major-mode", &buffer_defaults.major_mode, - doc: /* *Major mode for new buffers. Defaults to `fundamental-mode'. -A value of nil means use current buffer's major mode, -provided it is not marked as "special". - -When a mode is used by default, `find-file' switches to it -before it reads the contents into the buffer and before -it finishes setting up the buffer. Thus, the mode and -its hooks should not expect certain variables such as -`buffer-read-only' and `buffer-file-coding-system' to be set up. */); + doc: /* *Value of `major-mode' for new buffers. */); DEFVAR_PER_BUFFER ("major-mode", ¤t_buffer->major_mode, make_number (Lisp_Symbol), - doc: /* Symbol for current buffer's major mode. */); + doc: /* Symbol for current buffer's major mode. +The default value (normally `fundamental-mode') affects new buffers. +A value of nil means to use the current buffer's major mode, provided +it is not marked as "special". + +When a mode is used by default, `find-file' switches to it before it +reads the contents into the buffer and before it finishes setting up +the buffer. Thus, the mode and its hooks should not expect certain +variables such as `buffer-read-only' and `buffer-file-coding-system' +to be set up. */); DEFVAR_PER_BUFFER ("mode-name", ¤t_buffer->mode_name, Qnil,