Commit 6524291c authored by Karl Heuer's avatar Karl Heuer

(main): Test `initialized' before clearing *Messages*.

parent 42d720cf
...@@ -1009,11 +1009,14 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]); ...@@ -1009,11 +1009,14 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
symbol = intern ("default-enable-multibyte-characters"); symbol = intern ("default-enable-multibyte-characters");
Fset (symbol, Qnil); Fset (symbol, Qnil);
/* Erase pre-dump messages in *Messages* now so no abort. */ if (initialized)
old_log_max = Vmessage_log_max; {
XSETFASTINT (Vmessage_log_max, 0); /* Erase pre-dump messages in *Messages* now so no abort. */
message_dolog ("", 0, 1, 0); old_log_max = Vmessage_log_max;
Vmessage_log_max = old_log_max; XSETFASTINT (Vmessage_log_max, 0);
message_dolog ("", 0, 1, 0);
Vmessage_log_max = old_log_max;
}
for (tail = Vbuffer_alist; CONSP (tail); for (tail = Vbuffer_alist; CONSP (tail);
tail = XCONS (tail)->cdr) tail = XCONS (tail)->cdr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment