diff options
| author | Karl Heuer | 1998-06-01 21:08:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-06-01 21:08:28 +0000 |
| commit | 6524291c22d224db05de07c54f8878d5cc68513d (patch) | |
| tree | d664e23e3c5188489fb61c964e154f636a9d3b00 /src | |
| parent | 42d720cfa9d28ef2f53bec63fe4840f59ce31fe3 (diff) | |
| download | emacs-6524291c22d224db05de07c54f8878d5cc68513d.tar.gz emacs-6524291c22d224db05de07c54f8878d5cc68513d.zip | |
(main): Test `initialized' before clearing *Messages*.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c index 0a0f73a9842..3de28f12db4 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1009,11 +1009,14 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]); | |||
| 1009 | symbol = intern ("default-enable-multibyte-characters"); | 1009 | symbol = intern ("default-enable-multibyte-characters"); |
| 1010 | Fset (symbol, Qnil); | 1010 | Fset (symbol, Qnil); |
| 1011 | 1011 | ||
| 1012 | /* Erase pre-dump messages in *Messages* now so no abort. */ | 1012 | if (initialized) |
| 1013 | old_log_max = Vmessage_log_max; | 1013 | { |
| 1014 | XSETFASTINT (Vmessage_log_max, 0); | 1014 | /* Erase pre-dump messages in *Messages* now so no abort. */ |
| 1015 | message_dolog ("", 0, 1, 0); | 1015 | old_log_max = Vmessage_log_max; |
| 1016 | Vmessage_log_max = old_log_max; | 1016 | XSETFASTINT (Vmessage_log_max, 0); |
| 1017 | message_dolog ("", 0, 1, 0); | ||
| 1018 | Vmessage_log_max = old_log_max; | ||
| 1019 | } | ||
| 1017 | 1020 | ||
| 1018 | for (tail = Vbuffer_alist; CONSP (tail); | 1021 | for (tail = Vbuffer_alist; CONSP (tail); |
| 1019 | tail = XCONS (tail)->cdr) | 1022 | tail = XCONS (tail)->cdr) |