From c1f02afadfc879f527350dc56d6ed4d2daa7e173 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 21 Dec 2012 16:04:27 +0800 Subject: [PATCH] * buffer.c (Fset_buffer_major_mode): Doc fix. Fixes: debbugs:13231 --- src/ChangeLog | 4 ++++ src/buffer.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c123606efda..645da892971 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-12-21 Chong Yidong + + * buffer.c (Fset_buffer_major_mode): Doc fix (Bug#13231). + 2012-12-15 Chong Yidong * fns.c (Fcompare_strings): Doc fix (Bug#13081). diff --git a/src/buffer.c b/src/buffer.c index 0b3dde27968..519289fa370 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2043,7 +2043,7 @@ DEFUN ("bury-buffer-internal", Fbury_buffer_internal, Sbury_buffer_internal, DEFUN ("set-buffer-major-mode", Fset_buffer_major_mode, Sset_buffer_major_mode, 1, 1, 0, doc: /* Set an appropriate major mode for BUFFER. For the *scratch* buffer, use `initial-major-mode', otherwise choose a mode -according to `default-major-mode'. +according to the default value of `major-mode'. Use this function before selecting the buffer, since it may need to inspect the current buffer's major mode. */) (Lisp_Object buffer)