aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-10 09:21:28 +0000
committerGerd Moellmann2000-08-10 09:21:28 +0000
commit6a94510a734274882cfb89bdda6fab9143ca8bd5 (patch)
tree9b7d5071ad0caec6a3f0a2bd01b92a3594e3812f /src
parent2cb085db054c9c3f8460d224f07ff5fdc6dfe3a2 (diff)
downloademacs-6a94510a734274882cfb89bdda6fab9143ca8bd5.tar.gz
emacs-6a94510a734274882cfb89bdda6fab9143ca8bd5.zip
(Vmessages_buffer_name): New variable.
(message_dolog): Use it. (syms_of_xdisp): Initialize it.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 79717849bd6..28067a7ee51 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -453,6 +453,10 @@ static int line_number_display_limit_width;
453 453
454Lisp_Object Vmessage_log_max; 454Lisp_Object Vmessage_log_max;
455 455
456/* The name of the *Messages* buffer, a string. */
457
458static Lisp_Object Vmessages_buffer_name;
459
456/* Current, index 0, and last displayed echo area message. Either 460/* Current, index 0, and last displayed echo area message. Either
457 buffers from echo_buffers, or nil to indicate no message. */ 461 buffers from echo_buffers, or nil to indicate no message. */
458 462
@@ -4898,18 +4902,9 @@ message_dolog (m, len, nlflag, multibyte)
4898 Lisp_Object old_deactivate_mark, tem; 4902 Lisp_Object old_deactivate_mark, tem;
4899 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; 4903 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
4900 4904
4901 static Lisp_Object messages_buffer_name;
4902 static int buffer_name_initialized;
4903
4904 old_deactivate_mark = Vdeactivate_mark; 4905 old_deactivate_mark = Vdeactivate_mark;
4905 oldbuf = current_buffer; 4906 oldbuf = current_buffer;
4906 if (!buffer_name_initialized) 4907 Fset_buffer (Fget_buffer_create (Vmessages_buffer_name));
4907 {
4908 messages_buffer_name = build_string ("*Messages*");
4909 staticpro (&messages_buffer_name);
4910 buffer_name_initialized = 1;
4911 }
4912 Fset_buffer (Fget_buffer_create (messages_buffer_name));
4913 current_buffer->undo_list = Qt; 4908 current_buffer->undo_list = Qt;
4914 4909
4915 oldpoint = Fpoint_marker (); 4910 oldpoint = Fpoint_marker ();
@@ -13245,6 +13240,9 @@ syms_of_xdisp ()
13245 staticpro (&echo_area_buffer[0]); 13240 staticpro (&echo_area_buffer[0]);
13246 staticpro (&echo_area_buffer[1]); 13241 staticpro (&echo_area_buffer[1]);
13247 13242
13243 Vmessages_buffer_name = build_string ("*Messages*");
13244 staticpro (&Vmessages_buffer_name);
13245
13248 DEFVAR_LISP ("show-trailing-whitespace", &Vshow_trailing_whitespace, 13246 DEFVAR_LISP ("show-trailing-whitespace", &Vshow_trailing_whitespace,
13249 "Non-nil means highlight trailing whitespace.\n\ 13247 "Non-nil means highlight trailing whitespace.\n\
13250The face used for trailing whitespace is `trailing-whitespace'."); 13248The face used for trailing whitespace is `trailing-whitespace'.");