diff options
| author | Richard M. Stallman | 1996-01-29 23:26:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-29 23:26:11 +0000 |
| commit | 68313ed8befeec78901828ba690858f7db2a15b4 (patch) | |
| tree | 9cda6ed8dfd87b38755acb082b057fb6db57c162 /src | |
| parent | f8fbe212ecc4276ad451e9f37395f055d5904591 (diff) | |
| download | emacs-68313ed8befeec78901828ba690858f7db2a15b4.tar.gz emacs-68313ed8befeec78901828ba690858f7db2a15b4.zip | |
(Fset_minibuffer_window): New function.
(keys_of_minibuf): defsubr it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 21 |
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 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -127,6 +127,24 @@ choose_minibuf_frame () | |||
| 127 | #endif | 127 | #endif |
| 128 | } | 128 | } |
| 129 | } | 129 | } |
| 130 | |||
| 131 | DEFUN ("set-minibuffer-window", Fset_minibuffer_window, | ||
| 132 | Sset_minibuffer_window, 1, 1, 0, | ||
| 133 | "Specify which minibuffer window to use for the minibuffer.\n\ | ||
| 134 | This effects where the minibuffer is displayed if you put text in it\n\ | ||
| 135 | without 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); |