Document *Messages* buffer changes.
authorTassilo Horn <tsdh@gnu.org>
Fri, 20 Dec 2013 14:28:01 +0000 (15:28 +0100)
committerTassilo Horn <tsdh@gnu.org>
Fri, 20 Dec 2013 14:28:01 +0000 (15:28 +0100)
* doc/emacs/buffers.texi: Update list-buffers "screeshop" to show Messages
as major-mode.

* doc/lispref/display.texi: Document `messages-buffer'.

doc/emacs/ChangeLog
doc/emacs/buffers.texi
doc/lispref/ChangeLog
doc/lispref/display.texi
etc/NEWS

index f2be12e..4b2beb1 100644 (file)
@@ -1,5 +1,8 @@
 2013-12-20  Tassilo Horn  <tsdh@gnu.org>
 
+       * buffers.texi: Update list-buffers "screeshop" to show Messages
+       as major-mode.
+
        * entering.texi: Document `initial-buffer-choice' changes.
 
        * misc.texi (arguments): Document `initial-buffer-choice' changes.
index a62f2bd..9e5f996 100644 (file)
@@ -194,7 +194,7 @@ CRM Buffer                Size  Mode              File
  %  HELLO                 1607  Fundamental       ~/cvs/emacs/etc/HELLO
  %  NEWS                481184  Outline           ~/cvs/emacs/etc/NEWS
     *scratch*              191  Lisp Interaction
-  * *Messages*            1554  Fundamental
+  * *Messages*            1554  Messages
 @end smallexample
 
 @noindent
index 64c3ec4..be050b7 100644 (file)
@@ -1,5 +1,7 @@
 2013-12-20  Tassilo Horn  <tsdh@gnu.org>
 
+       * display.texi: Document `messages-buffer'.
+
        * os.texi: Document `initial-buffer-choice' changes.
 
 2013-12-20  Chong Yidong  <cyd@gnu.org>
index c6eeaf9..ead436a 100644 (file)
@@ -478,7 +478,14 @@ this macro this way:
   Almost all the messages displayed in the echo area are also recorded
 in the @file{*Messages*} buffer so that the user can refer back to
 them.  This includes all the messages that are output with
-@code{message}.
+@code{message}.  This buffer is read-only and has the major-mode
+@code{messages-buffer-mode}.  The best way to retrieve that buffer is
+the function @code{messages-buffer}.
+
+@defun messages-buffer
+Return the @file{*Messages*} buffer.
+If it does not exist, create and it switch it to @code{messages-buffer-mode}.
+@end defun
 
 @defopt message-log-max
 This variable specifies how many lines to keep in the @file{*Messages*}
index dca0676..34392ee 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -139,6 +139,7 @@ simply disabling Transient Mark mode does the same thing.
 ** `initial-buffer-choice' can now specify a function to set up the
 initial buffer.
 
++++
 ** The *Messages* buffer is created in a new major mode `messages-buffer-mode',
 and read-only.  Code that might create the *Messages* buffer should
 call the function `messages-buffer' to do so and set the mode.