aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c33
1 files changed, 27 insertions, 6 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 1367820a09c..9066f4d6d3e 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -107,18 +107,19 @@ int minibuffer_auto_raise;
107 107
108static Lisp_Object last_exact_completion; 108static Lisp_Object last_exact_completion;
109 109
110Lisp_Object Quser_variable_p;
111
112Lisp_Object Qminibuffer_default;
113
114/* Non-nil means it is the window for C-M-v to scroll 110/* Non-nil means it is the window for C-M-v to scroll
115 when the minibuffer is selected. */ 111 when the minibuffer is selected. */
116extern Lisp_Object Vminibuf_scroll_window; 112extern Lisp_Object Vminibuf_scroll_window;
117 113
118extern Lisp_Object Voverriding_local_map; 114extern Lisp_Object Voverriding_local_map;
119 115
116Lisp_Object Quser_variable_p;
117
118Lisp_Object Qminibuffer_default;
119
120Lisp_Object Qcurrent_input_method, Qactivate_input_method; 120Lisp_Object Qcurrent_input_method, Qactivate_input_method;
121 121
122extern Lisp_Object Qmouse_face;
122 123
123/* Put minibuf on currently selected frame's minibuffer. 124/* Put minibuf on currently selected frame's minibuffer.
124 We do this whenever the user starts a new minibuffer 125 We do this whenever the user starts a new minibuffer
@@ -1820,7 +1821,9 @@ DEFUN ("display-completion-list", Fdisplay_completion_list, Sdisplay_completion_
1820Each element may be just a symbol or string\n\ 1821Each element may be just a symbol or string\n\
1821or may be a list of two strings to be printed as if concatenated.\n\ 1822or may be a list of two strings to be printed as if concatenated.\n\
1822`standard-output' must be a buffer.\n\ 1823`standard-output' must be a buffer.\n\
1823At the end, run the normal hook `completion-setup-hook'.\n\ 1824The actual completion alternatives, as inserted, are given `mouse-face'\n\
1825properties of `highlight'.\n\
1826At the end, this runs the normal hook `completion-setup-hook'.\n\
1824It can find the completion buffer in `standard-output'.") 1827It can find the completion buffer in `standard-output'.")
1825 (completions) 1828 (completions)
1826 Lisp_Object completions; 1829 Lisp_Object completions;
@@ -1928,7 +1931,25 @@ It can find the completion buffer in `standard-output'.")
1928 else if (!NILP (current_buffer->enable_multibyte_characters) 1931 else if (!NILP (current_buffer->enable_multibyte_characters)
1929 && !STRING_MULTIBYTE (string)) 1932 && !STRING_MULTIBYTE (string))
1930 string = Fstring_make_multibyte (string); 1933 string = Fstring_make_multibyte (string);
1931 Fprinc (string, Qnil); 1934
1935 if (BUFFERP (Vstandard_output))
1936 {
1937 int startpos = BUF_PT (XBUFFER (Vstandard_output));
1938 int endpos;
1939
1940 Fprinc (string, Qnil);
1941
1942 endpos = BUF_PT (XBUFFER (Vstandard_output));
1943
1944 Fput_text_property (make_number (startpos),
1945 make_number (endpos),
1946 Qmouse_face, intern ("highlight"),
1947 Vstandard_output);
1948 }
1949 else
1950 {
1951 Fprinc (string, Qnil);
1952 }
1932 1953
1933 /* Output the annotation for this element. */ 1954 /* Output the annotation for this element. */
1934 if (CONSP (elt)) 1955 if (CONSP (elt))