diff options
| author | Stefan Monnier | 2013-02-17 11:49:27 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-02-17 11:49:27 -0500 |
| commit | 2f73da9c57872b084be2b0627092fa6d142f027f (patch) | |
| tree | 9aa663dc885dd6a43d3e632dd57f303c73006646 /src | |
| parent | 53db1d8b92a31a02f82d2bd52f46a041d3bb82b8 (diff) | |
| download | emacs-2f73da9c57872b084be2b0627092fa6d142f027f.tar.gz emacs-2f73da9c57872b084be2b0627092fa6d142f027f.zip | |
Prefer `message1' over `message'.
* src/xml.c (init_libxml2_functions):
* src/sound.c (sound_warning):
* src/sheap.c (report_sheap_usage):
* src/process.c (wait_reading_process_output):
* src/msdos.c (XMenuActivate):
* src/macros.c (Fstart_kbd_macro, Fend_kbd_macro):
* src/keyboard.c (top_level_1):
* src/editfns.c (Fmessage, Fmessage_box):
* src/callint.c (Fcall_interactively):
* src/fns.c (Fyes_or_no_p): Prefer `message1' over `message'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/callint.c | 2 | ||||
| -rw-r--r-- | src/editfns.c | 4 | ||||
| -rw-r--r-- | src/fns.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 6 | ||||
| -rw-r--r-- | src/macros.c | 10 | ||||
| -rw-r--r-- | src/msdos.c | 4 | ||||
| -rw-r--r-- | src/process.c | 2 | ||||
| -rw-r--r-- | src/sheap.c | 2 | ||||
| -rw-r--r-- | src/sound.c | 2 | ||||
| -rw-r--r-- | src/xml.c | 2 |
11 files changed, 31 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8e5cb667413..4be1e28dbcd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,19 @@ | |||
| 1 | 2013-02-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * xml.c (init_libxml2_functions): | ||
| 4 | * sound.c (sound_warning): | ||
| 5 | * sheap.c (report_sheap_usage): | ||
| 6 | * process.c (wait_reading_process_output): | ||
| 7 | * msdos.c (XMenuActivate): | ||
| 8 | * macros.c (Fstart_kbd_macro, Fend_kbd_macro): | ||
| 9 | * keyboard.c (top_level_1): | ||
| 10 | * editfns.c (Fmessage, Fmessage_box): | ||
| 11 | * callint.c (Fcall_interactively): | ||
| 12 | * fns.c (Fyes_or_no_p): Prefer `message1' over `message'. | ||
| 13 | |||
| 1 | 2013-02-17 Jan Djärv <jan.h.d@swipnet.se> | 14 | 2013-02-17 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 15 | ||
| 3 | * xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ... | 16 | * xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ... |
| 4 | |||
| 5 | * frame.c (syms_of_frame): ... to here. | 17 | * frame.c (syms_of_frame): ... to here. |
| 6 | 18 | ||
| 7 | 2013-02-16 Eli Zaretskii <eliz@gnu.org> | 19 | 2013-02-16 Eli Zaretskii <eliz@gnu.org> |
diff --git a/src/callint.c b/src/callint.c index 1a125d3e865..3e295a3b26b 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -690,7 +690,7 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 690 | Lisp_Object str; | 690 | Lisp_Object str; |
| 691 | if (! first) | 691 | if (! first) |
| 692 | { | 692 | { |
| 693 | message ("Please enter a number."); | 693 | message1 ("Please enter a number."); |
| 694 | sit_for (make_number (1), 0, 0); | 694 | sit_for (make_number (1), 0, 0); |
| 695 | } | 695 | } |
| 696 | first = 0; | 696 | first = 0; |
diff --git a/src/editfns.c b/src/editfns.c index c5cd8b0b725..bee0bcc158d 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3451,7 +3451,7 @@ usage: (message FORMAT-STRING &rest ARGS) */) | |||
| 3451 | || (STRINGP (args[0]) | 3451 | || (STRINGP (args[0]) |
| 3452 | && SBYTES (args[0]) == 0)) | 3452 | && SBYTES (args[0]) == 0)) |
| 3453 | { | 3453 | { |
| 3454 | message (0); | 3454 | message1 (0); |
| 3455 | return args[0]; | 3455 | return args[0]; |
| 3456 | } | 3456 | } |
| 3457 | else | 3457 | else |
| @@ -3477,7 +3477,7 @@ usage: (message-box FORMAT-STRING &rest ARGS) */) | |||
| 3477 | { | 3477 | { |
| 3478 | if (NILP (args[0])) | 3478 | if (NILP (args[0])) |
| 3479 | { | 3479 | { |
| 3480 | message (0); | 3480 | message1 (0); |
| 3481 | return Qnil; | 3481 | return Qnil; |
| 3482 | } | 3482 | } |
| 3483 | else | 3483 | else |
| @@ -2485,7 +2485,7 @@ is nil, and `use-dialog-box' is non-nil. */) | |||
| 2485 | 2485 | ||
| 2486 | Fding (Qnil); | 2486 | Fding (Qnil); |
| 2487 | Fdiscard_input (); | 2487 | Fdiscard_input (); |
| 2488 | message ("Please answer yes or no."); | 2488 | message1 ("Please answer yes or no."); |
| 2489 | Fsleep_for (make_number (2), Qnil); | 2489 | Fsleep_for (make_number (2), Qnil); |
| 2490 | } | 2490 | } |
| 2491 | } | 2491 | } |
diff --git a/src/keyboard.c b/src/keyboard.c index 69c68d13943..77037f647e9 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1185,13 +1185,13 @@ top_level_2 (void) | |||
| 1185 | static Lisp_Object | 1185 | static Lisp_Object |
| 1186 | top_level_1 (Lisp_Object ignore) | 1186 | top_level_1 (Lisp_Object ignore) |
| 1187 | { | 1187 | { |
| 1188 | /* On entry to the outer level, run the startup file */ | 1188 | /* On entry to the outer level, run the startup file. */ |
| 1189 | if (!NILP (Vtop_level)) | 1189 | if (!NILP (Vtop_level)) |
| 1190 | internal_condition_case (top_level_2, Qerror, cmd_error); | 1190 | internal_condition_case (top_level_2, Qerror, cmd_error); |
| 1191 | else if (!NILP (Vpurify_flag)) | 1191 | else if (!NILP (Vpurify_flag)) |
| 1192 | message ("Bare impure Emacs (standard Lisp code not loaded)"); | 1192 | message1 ("Bare impure Emacs (standard Lisp code not loaded)"); |
| 1193 | else | 1193 | else |
| 1194 | message ("Bare Emacs (standard Lisp code not loaded)"); | 1194 | message1 ("Bare Emacs (standard Lisp code not loaded)"); |
| 1195 | return Qnil; | 1195 | return Qnil; |
| 1196 | } | 1196 | } |
| 1197 | 1197 | ||
diff --git a/src/macros.c b/src/macros.c index 1eef9b678f4..0dcfbe5532c 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -78,7 +78,7 @@ macro before appending to it. */) | |||
| 78 | } | 78 | } |
| 79 | current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_buffer; | 79 | current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_buffer; |
| 80 | current_kboard->kbd_macro_end = current_kboard->kbd_macro_buffer; | 80 | current_kboard->kbd_macro_end = current_kboard->kbd_macro_buffer; |
| 81 | message ("Defining kbd macro..."); | 81 | message1 ("Defining kbd macro..."); |
| 82 | } | 82 | } |
| 83 | else | 83 | else |
| 84 | { | 84 | { |
| @@ -125,7 +125,7 @@ macro before appending to it. */) | |||
| 125 | Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), | 125 | Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), |
| 126 | make_number (1), Qnil); | 126 | make_number (1), Qnil); |
| 127 | 127 | ||
| 128 | message ("Appending to kbd macro..."); | 128 | message1 ("Appending to kbd macro..."); |
| 129 | } | 129 | } |
| 130 | kset_defining_kbd_macro (current_kboard, Qt); | 130 | kset_defining_kbd_macro (current_kboard, Qt); |
| 131 | 131 | ||
| @@ -172,21 +172,21 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 172 | if (!NILP (KVAR (current_kboard, defining_kbd_macro))) | 172 | if (!NILP (KVAR (current_kboard, defining_kbd_macro))) |
| 173 | { | 173 | { |
| 174 | end_kbd_macro (); | 174 | end_kbd_macro (); |
| 175 | message ("Keyboard macro defined"); | 175 | message1 ("Keyboard macro defined"); |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | if (XFASTINT (repeat) == 0) | 178 | if (XFASTINT (repeat) == 0) |
| 179 | Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc); | 179 | Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc); |
| 180 | else if (XINT (repeat) > 1) | 180 | else if (XINT (repeat) > 1) |
| 181 | { | 181 | { |
| 182 | XSETINT (repeat, XINT (repeat)-1); | 182 | XSETINT (repeat, XINT (repeat) - 1); |
| 183 | Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), | 183 | Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), |
| 184 | repeat, loopfunc); | 184 | repeat, loopfunc); |
| 185 | } | 185 | } |
| 186 | return Qnil; | 186 | return Qnil; |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | /* Store character c into kbd macro being defined */ | 189 | /* Store character c into kbd macro being defined. */ |
| 190 | 190 | ||
| 191 | void | 191 | void |
| 192 | store_kbd_macro_char (Lisp_Object c) | 192 | store_kbd_macro_char (Lisp_Object c) |
diff --git a/src/msdos.c b/src/msdos.c index 527a75c8c2f..ac8c90455d7 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -3281,10 +3281,10 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, | |||
| 3281 | erasing it works correctly... */ | 3281 | erasing it works correctly... */ |
| 3282 | if (! NILP (saved_echo_area_message)) | 3282 | if (! NILP (saved_echo_area_message)) |
| 3283 | message_with_string ("%s", saved_echo_area_message, 0); | 3283 | message_with_string ("%s", saved_echo_area_message, 0); |
| 3284 | message (0); | 3284 | message1 (0); |
| 3285 | while (statecount--) | 3285 | while (statecount--) |
| 3286 | xfree (state[statecount].screen_behind); | 3286 | xfree (state[statecount].screen_behind); |
| 3287 | IT_display_cursor (1); /* turn cursor back on */ | 3287 | IT_display_cursor (1); /* Turn cursor back on. */ |
| 3288 | /* Clean up any mouse events that are waiting inside Emacs event queue. | 3288 | /* Clean up any mouse events that are waiting inside Emacs event queue. |
| 3289 | These events are likely to be generated before the menu was even | 3289 | These events are likely to be generated before the menu was even |
| 3290 | displayed, probably because the user pressed and released the button | 3290 | displayed, probably because the user pressed and released the button |
diff --git a/src/process.c b/src/process.c index 9d6e8c097a1..5b15ade1122 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4218,7 +4218,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, | |||
| 4218 | if (time_limit == 0 && nsecs == 0 && wait_proc && !NILP (Vinhibit_quit) | 4218 | if (time_limit == 0 && nsecs == 0 && wait_proc && !NILP (Vinhibit_quit) |
| 4219 | && !(CONSP (wait_proc->status) | 4219 | && !(CONSP (wait_proc->status) |
| 4220 | && EQ (XCAR (wait_proc->status), Qexit))) | 4220 | && EQ (XCAR (wait_proc->status), Qexit))) |
| 4221 | message ("Blocking call to accept-process-output with quit inhibited!!"); | 4221 | message1 ("Blocking call to accept-process-output with quit inhibited!!"); |
| 4222 | 4222 | ||
| 4223 | /* If wait_proc is a process to watch, set wait_channel accordingly. */ | 4223 | /* If wait_proc is a process to watch, set wait_channel accordingly. */ |
| 4224 | if (wait_proc != NULL) | 4224 | if (wait_proc != NULL) |
diff --git a/src/sheap.c b/src/sheap.c index 972c04c9552..06e205bc0e5 100644 --- a/src/sheap.c +++ b/src/sheap.c | |||
| @@ -91,5 +91,5 @@ report_sheap_usage (int die_if_pure_storage_exceeded) | |||
| 91 | char buf[200]; | 91 | char buf[200]; |
| 92 | sprintf (buf, "Static heap usage: %d of %d bytes", | 92 | sprintf (buf, "Static heap usage: %d of %d bytes", |
| 93 | bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE); | 93 | bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE); |
| 94 | message ("%s", buf); | 94 | message1 (buf); |
| 95 | } | 95 | } |
diff --git a/src/sound.c b/src/sound.c index 802f1ce740d..9c472fb0263 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -334,7 +334,7 @@ sound_perror (const char *msg) | |||
| 334 | static void | 334 | static void |
| 335 | sound_warning (const char *msg) | 335 | sound_warning (const char *msg) |
| 336 | { | 336 | { |
| 337 | message ("%s", msg); | 337 | message1 (msg); |
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | 340 | ||
| @@ -93,7 +93,7 @@ init_libxml2_functions (void) | |||
| 93 | 93 | ||
| 94 | if (!(library = w32_delayed_load (Qlibxml2_dll))) | 94 | if (!(library = w32_delayed_load (Qlibxml2_dll))) |
| 95 | { | 95 | { |
| 96 | message ("%s", "libxml2 library not found"); | 96 | message1 ("libxml2 library not found"); |
| 97 | return 0; | 97 | return 0; |
| 98 | } | 98 | } |
| 99 | 99 | ||