From 562af8bb4f1f1f4962cf3543290c61c2cc554978 Mon Sep 17 00:00:00 2001 From: Dani Moncayo Date: Sat, 25 Feb 2012 11:49:22 +0800 Subject: [PATCH] Add a clarification to Buffers chapter of Emacs manual. * doc/emacs/buffers.texi (Select Buffer): Mention that saving in a new file name can switch to a different major mode. --- doc/emacs/ChangeLog | 5 +++++ doc/emacs/buffers.texi | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 2f3a4ee1680..3d3c8f003cb 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,8 @@ +2012-02-25 Dani Moncayo (tiny change) + + * buffers.texi (Select Buffer): Mention that saving in a new file + name can switch to a different major mode. + 2012-02-23 Glenn Morris * mini.texi (Minibuffer File, Completion Options, Repetition): diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index c3a778dd202..d0ec1103580 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi @@ -106,7 +106,9 @@ editing. The default value of the variable @code{major-mode} determines the new buffer's major mode; the default value is Fundamental mode. @xref{Major Modes}. One reason to create a new buffer is to use it for making temporary notes. If you try to save -it, Emacs asks for the file name to use. +it, Emacs asks for the file name to use, and the buffer's major mode +is re-established taking that file name into account (@pxref{Choosing +Modes}). @kindex C-x @key{LEFT} @kindex C-x @key{RIGHT} -- 2.39.2