aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2003-04-11 02:06:15 +0000
committerKenichi Handa2003-04-11 02:06:15 +0000
commit805221da23f70386a0cd402d041e3dbce07975fe (patch)
tree393334c104ca06b564926eeb1e2759e88177f305 /src
parentda1ebad19f92232c92978bc0ce71570c5eba1276 (diff)
downloademacs-805221da23f70386a0cd402d041e3dbce07975fe.tar.gz
emacs-805221da23f70386a0cd402d041e3dbce07975fe.zip
(temp_echo_area_glyphs): Change the arg to Lisp
string. Callers changed.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index ff4c21c3f03..667f944ab6a 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1719,7 +1719,7 @@ do_completion ()
1719 if (NILP (completion)) 1719 if (NILP (completion))
1720 { 1720 {
1721 bitch_at_user (); 1721 bitch_at_user ();
1722 temp_echo_area_glyphs (" [No match]"); 1722 temp_echo_area_glyphs (build_string (" [No match]"));
1723 UNGCPRO; 1723 UNGCPRO;
1724 return 0; 1724 return 0;
1725 } 1725 }
@@ -1783,7 +1783,7 @@ do_completion ()
1783 else if (!NILP (Vcompletion_auto_help)) 1783 else if (!NILP (Vcompletion_auto_help))
1784 Fminibuffer_completion_help (); 1784 Fminibuffer_completion_help ();
1785 else 1785 else
1786 temp_echo_area_glyphs (" [Next char not unique]"); 1786 temp_echo_area_glyphs (build_string (" [Next char not unique]"));
1787 return 6; 1787 return 6;
1788 } 1788 }
1789 else if (completedp) 1789 else if (completedp)
@@ -1882,13 +1882,13 @@ scroll the window of possible completions. */)
1882 case 1: 1882 case 1:
1883 if (PT != ZV) 1883 if (PT != ZV)
1884 Fgoto_char (make_number (ZV)); 1884 Fgoto_char (make_number (ZV));
1885 temp_echo_area_glyphs (" [Sole completion]"); 1885 temp_echo_area_glyphs (build_string (" [Sole completion]"));
1886 break; 1886 break;
1887 1887
1888 case 3: 1888 case 3:
1889 if (PT != ZV) 1889 if (PT != ZV)
1890 Fgoto_char (make_number (ZV)); 1890 Fgoto_char (make_number (ZV));
1891 temp_echo_area_glyphs (" [Complete, but not unique]"); 1891 temp_echo_area_glyphs (build_string (" [Complete, but not unique]"));
1892 break; 1892 break;
1893 } 1893 }
1894 1894
@@ -1949,7 +1949,7 @@ a repetition of this command will exit. */)
1949 case 4: 1949 case 4:
1950 if (!NILP (Vminibuffer_completion_confirm)) 1950 if (!NILP (Vminibuffer_completion_confirm))
1951 { 1951 {
1952 temp_echo_area_glyphs (" [Confirm]"); 1952 temp_echo_area_glyphs (build_string (" [Confirm]"));
1953 return Qnil; 1953 return Qnil;
1954 } 1954 }
1955 else 1955 else
@@ -1986,7 +1986,7 @@ Return nil if there is no valid completion, else t. */)
1986 if (NILP (completion)) 1986 if (NILP (completion))
1987 { 1987 {
1988 bitch_at_user (); 1988 bitch_at_user ();
1989 temp_echo_area_glyphs (" [No match]"); 1989 temp_echo_area_glyphs (build_string (" [No match]"));
1990 return Qnil; 1990 return Qnil;
1991 } 1991 }
1992 if (EQ (completion, Qt)) 1992 if (EQ (completion, Qt))
@@ -2344,7 +2344,7 @@ DEFUN ("minibuffer-completion-help", Fminibuffer_completion_help, Sminibuffer_co
2344 if (NILP (completions)) 2344 if (NILP (completions))
2345 { 2345 {
2346 bitch_at_user (); 2346 bitch_at_user ();
2347 temp_echo_area_glyphs (" [No completions]"); 2347 temp_echo_area_glyphs (build_string (" [No completions]"));
2348 } 2348 }
2349 else 2349 else
2350 internal_with_output_to_temp_buffer ("*Completions*", 2350 internal_with_output_to_temp_buffer ("*Completions*",
@@ -2388,15 +2388,15 @@ If no minibuffer is active, return nil. */)
2388} 2388}
2389 2389
2390 2390
2391/* Temporarily display the string M at the end of the current 2391/* Temporarily display STRING at the end of the current
2392 minibuffer contents. This is used to display things like 2392 minibuffer contents. This is used to display things like
2393 "[No Match]" when the user requests a completion for a prefix 2393 "[No Match]" when the user requests a completion for a prefix
2394 that has no possible completions, and other quick, unobtrusive 2394 that has no possible completions, and other quick, unobtrusive
2395 messages. */ 2395 messages. */
2396 2396
2397void 2397void
2398temp_echo_area_glyphs (m) 2398temp_echo_area_glyphs (string)
2399 const char *m; 2399 Lisp_Object string;
2400{ 2400{
2401 int osize = ZV; 2401 int osize = ZV;
2402 int osize_byte = ZV_BYTE; 2402 int osize_byte = ZV_BYTE;
@@ -2409,7 +2409,7 @@ temp_echo_area_glyphs (m)
2409 message (0); 2409 message (0);
2410 2410
2411 SET_PT_BOTH (osize, osize_byte); 2411 SET_PT_BOTH (osize, osize_byte);
2412 insert_string (m); 2412 insert_from_string (string, 0, 0, SCHARS (string), SBYTES (string), 0);
2413 SET_PT_BOTH (opoint, opoint_byte); 2413 SET_PT_BOTH (opoint, opoint_byte);
2414 Vinhibit_quit = Qt; 2414 Vinhibit_quit = Qt;
2415 Fsit_for (make_number (2), Qnil, Qnil); 2415 Fsit_for (make_number (2), Qnil, Qnil);
@@ -2432,7 +2432,7 @@ or until the next input event arrives, whichever comes first. */)
2432 Lisp_Object string; 2432 Lisp_Object string;
2433{ 2433{
2434 CHECK_STRING (string); 2434 CHECK_STRING (string);
2435 temp_echo_area_glyphs (SDATA (string)); 2435 temp_echo_area_glyphs (string);
2436 return Qnil; 2436 return Qnil;
2437} 2437}
2438 2438