diff options
| author | Chong Yidong | 2006-10-10 00:33:02 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-10-10 00:33:02 +0000 |
| commit | 394ccd7d8bf47c9ecef244631cfda61e065e777d (patch) | |
| tree | 33d62aea954f46431e8fa423ef20f4f7ba1e2764 /src | |
| parent | 80f66ef4dfcb71320eab903660d6039118f6e1ef (diff) | |
| download | emacs-394ccd7d8bf47c9ecef244631cfda61e065e777d.tar.gz emacs-394ccd7d8bf47c9ecef244631cfda61e065e777d.zip | |
* minibuf.c (temp_echo_area_glyphs): Sit for
`minibuffer-message-timeout' seconds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/minibuf.c | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 91e7fff4347..1a6c151b4b1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-10-09 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * minibuf.c (temp_echo_area_glyphs): Sit for | ||
| 4 | `minibuffer-message-timeout' seconds. | ||
| 5 | |||
| 1 | 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * macterm.c (mac_draw_image_string, mac_draw_image_string_16): Add | 8 | * macterm.c (mac_draw_image_string, mac_draw_image_string_16): Add |
diff --git a/src/minibuf.c b/src/minibuf.c index ea065a6b4e8..19b06acc471 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -2692,6 +2692,8 @@ If no minibuffer is active, return nil. */) | |||
| 2692 | that has no possible completions, and other quick, unobtrusive | 2692 | that has no possible completions, and other quick, unobtrusive |
| 2693 | messages. */ | 2693 | messages. */ |
| 2694 | 2694 | ||
| 2695 | extern Lisp_Object Vminibuffer_message_timeout; | ||
| 2696 | |||
| 2695 | void | 2697 | void |
| 2696 | temp_echo_area_glyphs (string) | 2698 | temp_echo_area_glyphs (string) |
| 2697 | Lisp_Object string; | 2699 | Lisp_Object string; |
| @@ -2710,7 +2712,15 @@ temp_echo_area_glyphs (string) | |||
| 2710 | insert_from_string (string, 0, 0, SCHARS (string), SBYTES (string), 0); | 2712 | insert_from_string (string, 0, 0, SCHARS (string), SBYTES (string), 0); |
| 2711 | SET_PT_BOTH (opoint, opoint_byte); | 2713 | SET_PT_BOTH (opoint, opoint_byte); |
| 2712 | Vinhibit_quit = Qt; | 2714 | Vinhibit_quit = Qt; |
| 2713 | sit_for (make_number (2), 0, 2); | 2715 | |
| 2716 | if (NUMBERP (Vminibuffer_message_timeout)) | ||
| 2717 | { | ||
| 2718 | if (Fgtr (Vminibuffer_message_timeout, make_number (0))) | ||
| 2719 | sit_for (Vminibuffer_message_timeout, 0, 2); | ||
| 2720 | } | ||
| 2721 | else | ||
| 2722 | sit_for (make_number (-1), 0, 2); | ||
| 2723 | |||
| 2714 | del_range_both (osize, osize_byte, ZV, ZV_BYTE, 1); | 2724 | del_range_both (osize, osize_byte, ZV, ZV_BYTE, 1); |
| 2715 | SET_PT_BOTH (opoint, opoint_byte); | 2725 | SET_PT_BOTH (opoint, opoint_byte); |
| 2716 | if (!NILP (Vquit_flag)) | 2726 | if (!NILP (Vquit_flag)) |