Mercurial > emacs
diff src/buffer.c @ 83207:4df500c93e1d
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-552
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-553
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-554
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-555
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-556
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-557
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-27
Use the same directory explicit id-tags as Emacs where possible
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-28
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-29
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-247
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Mon, 20 Sep 2004 09:41:18 +0000 |
parents | 42acc7fa8a4f 5358b2582e78 |
children | b85b19b8eb65 |
line wrap: on
line diff
--- a/src/buffer.c Thu Sep 16 13:09:53 2004 +0000 +++ b/src/buffer.c Mon Sep 20 09:41:18 2004 +0000 @@ -5430,7 +5430,14 @@ DEFVAR_LISP_NOPRO ("default-major-mode", &buffer_defaults.major_mode, doc: /* *Major mode for new buffers. Defaults to `fundamental-mode'. -nil here means use current buffer's major mode. */); +nil here 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. */); DEFVAR_PER_BUFFER ("major-mode", ¤t_buffer->major_mode, make_number (Lisp_Symbol),