diff options
| author | Richard M. Stallman | 1996-02-02 06:31:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-02-02 06:31:06 +0000 |
| commit | 1adc55de4a22d4a9bc30a877ba374d8f0f696e64 (patch) | |
| tree | 93b66f067e18d6e3a00c6346c8c6910951a6d1f3 /src | |
| parent | 88c4981a92b3321a7592dfae963ec58708d5d857 (diff) | |
| download | emacs-1adc55de4a22d4a9bc30a877ba374d8f0f696e64.tar.gz emacs-1adc55de4a22d4a9bc30a877ba374d8f0f696e64.zip | |
Comment/whitespace changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 23e58d221ce..f96a1862f93 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -228,6 +228,8 @@ static int line_number_display_limit; | |||
| 228 | t means infinite. nil means don't log at all. */ | 228 | t means infinite. nil means don't log at all. */ |
| 229 | Lisp_Object Vmessage_log_max; | 229 | Lisp_Object Vmessage_log_max; |
| 230 | 230 | ||
| 231 | /* Output a newline in the *Messages* buffer if "needs" one. */ | ||
| 232 | |||
| 231 | void | 233 | void |
| 232 | message_log_maybe_newline () | 234 | message_log_maybe_newline () |
| 233 | { | 235 | { |
| @@ -323,7 +325,6 @@ message_dolog (m, len, nlflag) | |||
| 323 | } | 325 | } |
| 324 | } | 326 | } |
| 325 | 327 | ||
| 326 | |||
| 327 | /* We are at the end of the buffer after just having inserted a newline. | 328 | /* We are at the end of the buffer after just having inserted a newline. |
| 328 | (Note: We depend on the fact we won't be crossing the gap.) | 329 | (Note: We depend on the fact we won't be crossing the gap.) |
| 329 | Check to see if the most recent message looks a lot like the previous one. | 330 | Check to see if the most recent message looks a lot like the previous one. |
| @@ -361,11 +362,16 @@ message_log_check_duplicate (prev_bol, this_bol) | |||
| 361 | } | 362 | } |
| 362 | return 0; | 363 | return 0; |
| 363 | } | 364 | } |
| 364 | 365 | ||
| 365 | /* Display an echo area message M with a specified length of LEN chars. | 366 | /* Display an echo area message M with a specified length of LEN chars. |
| 366 | The string may include null characters. If m is 0, clear out any | 367 | The string may include null characters. If M is 0, clear out any |
| 367 | existing message, and let the minibuffer text show through. | 368 | existing message, and let the minibuffer text show through. |
| 368 | Do not pass text that is stored in a Lisp string. */ | 369 | |
| 370 | The buffer M must continue to exist until after the echo area | ||
| 371 | gets cleared or some other message gets displayed there. | ||
| 372 | |||
| 373 | Do not pass text that is stored in a Lisp string. | ||
| 374 | Do not pass text in a buffer that was alloca'd. */ | ||
| 369 | 375 | ||
| 370 | void | 376 | void |
| 371 | message2 (m, len) | 377 | message2 (m, len) |
| @@ -380,7 +386,7 @@ message2 (m, len) | |||
| 380 | } | 386 | } |
| 381 | 387 | ||
| 382 | 388 | ||
| 383 | /* The non-logging part of that function. */ | 389 | /* The non-logging counterpart of message2. */ |
| 384 | 390 | ||
| 385 | void | 391 | void |
| 386 | message2_nolog (m, len) | 392 | message2_nolog (m, len) |
| @@ -433,6 +439,15 @@ message2_nolog (m, len) | |||
| 433 | (*frame_up_to_date_hook) (f); | 439 | (*frame_up_to_date_hook) (f); |
| 434 | } | 440 | } |
| 435 | } | 441 | } |
| 442 | |||
| 443 | /* Display a null-terminated echo area message M. If M is 0, clear out any | ||
| 444 | existing message, and let the minibuffer text show through. | ||
| 445 | |||
| 446 | The buffer M must continue to exist until after the echo area | ||
| 447 | gets cleared or some other message gets displayed there. | ||
| 448 | |||
| 449 | Do not pass text that is stored in a Lisp string. | ||
| 450 | Do not pass text in a buffer that was alloca'd. */ | ||
| 436 | 451 | ||
| 437 | void | 452 | void |
| 438 | message1 (m) | 453 | message1 (m) |
| @@ -466,8 +481,9 @@ truncate_echo_area (len) | |||
| 466 | zero if being used by message. */ | 481 | zero if being used by message. */ |
| 467 | int message_buf_print; | 482 | int message_buf_print; |
| 468 | 483 | ||
| 469 | /* Dump an informative message to the minibuf. If m is 0, clear out | 484 | /* Dump an informative message to the minibuf. If M is 0, clear out |
| 470 | any existing message, and let the minibuffer text show through. */ | 485 | any existing message, and let the minibuffer text show through. */ |
| 486 | |||
| 471 | /* VARARGS 1 */ | 487 | /* VARARGS 1 */ |
| 472 | void | 488 | void |
| 473 | message (m, a1, a2, a3) | 489 | message (m, a1, a2, a3) |
| @@ -533,7 +549,7 @@ message (m, a1, a2, a3) | |||
| 533 | } | 549 | } |
| 534 | } | 550 | } |
| 535 | 551 | ||
| 536 | /* The non-logging version of that function. */ | 552 | /* The non-logging version of message. */ |
| 537 | void | 553 | void |
| 538 | message_nolog (m, a1, a2, a3) | 554 | message_nolog (m, a1, a2, a3) |
| 539 | char *m; | 555 | char *m; |
| @@ -551,7 +567,7 @@ update_echo_area () | |||
| 551 | { | 567 | { |
| 552 | message2 (echo_area_glyphs, echo_area_glyphs_length); | 568 | message2 (echo_area_glyphs, echo_area_glyphs_length); |
| 553 | } | 569 | } |
| 554 | 570 | ||
| 555 | static void | 571 | static void |
| 556 | echo_area_display () | 572 | echo_area_display () |
| 557 | { | 573 | { |
| @@ -614,6 +630,8 @@ echo_area_display () | |||
| 614 | 630 | ||
| 615 | previous_echo_glyphs = echo_area_glyphs; | 631 | previous_echo_glyphs = echo_area_glyphs; |
| 616 | } | 632 | } |
| 633 | |||
| 634 | /* Update frame titles. */ | ||
| 617 | 635 | ||
| 618 | #ifdef HAVE_WINDOW_SYSTEM | 636 | #ifdef HAVE_WINDOW_SYSTEM |
| 619 | static char frame_title_buf[512]; | 637 | static char frame_title_buf[512]; |