]> code.delx.au - gnu-emacs/commitdiff
* minibuf.c (temp_echo_area_glyphs): Sit for
authorChong Yidong <cyd@stupidchicken.com>
Tue, 10 Oct 2006 00:33:02 +0000 (00:33 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 10 Oct 2006 00:33:02 +0000 (00:33 +0000)
`minibuffer-message-timeout' seconds.

src/ChangeLog
src/minibuf.c

index 91e7fff4347972caf0427ebff6346bc53d226427..1a6c151b4b1e6c599e4266a37fa04bebe770de9e 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-09  Chong Yidong  <cyd@stupidchicken.com>
+
+       * minibuf.c (temp_echo_area_glyphs): Sit for
+       `minibuffer-message-timeout' seconds.
+
 2006-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
        * macterm.c (mac_draw_image_string, mac_draw_image_string_16): Add
index ea065a6b4e847f5fc51c82c416eeaad152c5e6c9..19b06acc471421d0004efe0ef0494fa8d49d9c98 100644 (file)
@@ -2692,6 +2692,8 @@ If no minibuffer is active, return nil.  */)
    that has no possible completions, and other quick, unobtrusive
    messages.  */
 
+extern Lisp_Object Vminibuffer_message_timeout;
+
 void
 temp_echo_area_glyphs (string)
      Lisp_Object string;
@@ -2710,7 +2712,15 @@ temp_echo_area_glyphs (string)
   insert_from_string (string, 0, 0, SCHARS (string), SBYTES (string), 0);
   SET_PT_BOTH (opoint, opoint_byte);
   Vinhibit_quit = Qt;
-  sit_for (make_number (2), 0, 2);
+
+  if (NUMBERP (Vminibuffer_message_timeout))
+    {
+      if (Fgtr (Vminibuffer_message_timeout, make_number (0)))
+       sit_for (Vminibuffer_message_timeout, 0, 2);
+    }
+  else
+    sit_for (make_number (-1), 0, 2);
+
   del_range_both (osize, osize_byte, ZV, ZV_BYTE, 1);
   SET_PT_BOTH (opoint, opoint_byte);
   if (!NILP (Vquit_flag))