aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 94d0b845d1b..bab116f4ba7 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1,5 +1,5 @@
1/* Minibuffer input and completion. 1/* Minibuffer input and completion.
2 Copyright (C) 1985, 1986, 1993, 1994, 1995 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 93, 94, 95, 1996 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -127,6 +127,24 @@ choose_minibuf_frame ()
127#endif 127#endif
128 } 128 }
129} 129}
130
131DEFUN ("set-minibuffer-window", Fset_minibuffer_window,
132 Sset_minibuffer_window, 1, 1, 0,
133 "Specify which minibuffer window to use for the minibuffer.\n\
134This effects where the minibuffer is displayed if you put text in it\n\
135without invoking the usual minibuffer commands.")
136 (window)
137 Lisp_Object window;
138{
139 CHECK_WINDOW (window, 1);
140 if (! MINI_WINDOW_P (XWINDOW (window)))
141 error ("Window is not a minibuffer window");
142
143 minibuf_window = window;
144
145 return window;
146}
147
130 148
131/* Actual minibuffer invocation. */ 149/* Actual minibuffer invocation. */
132 150
@@ -1817,6 +1835,7 @@ is added with\n\
1817 "List of regexps that should restrict possible completions."); 1835 "List of regexps that should restrict possible completions.");
1818 Vcompletion_regexp_list = Qnil; 1836 Vcompletion_regexp_list = Qnil;
1819 1837
1838 defsubr (&Sset_minibuffer_window);
1820 defsubr (&Sread_from_minibuffer); 1839 defsubr (&Sread_from_minibuffer);
1821 defsubr (&Seval_minibuffer); 1840 defsubr (&Seval_minibuffer);
1822 defsubr (&Sread_minibuffer); 1841 defsubr (&Sread_minibuffer);