diff options
| author | Jim Blandy | 1991-07-23 20:13:12 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-07-23 20:13:12 +0000 |
| commit | b2b2c677c837418bdcfe5d1822b7502c7edf9d3a (patch) | |
| tree | 1e8a40ed1cdd212edb2bc9070e4d29be1903373d | |
| parent | c462c9645e1a926134ff199f527e183b27135854 (diff) | |
| download | emacs-b2b2c677c837418bdcfe5d1822b7502c7edf9d3a.tar.gz emacs-b2b2c677c837418bdcfe5d1822b7502c7edf9d3a.zip | |
*** empty log message ***
| -rw-r--r-- | src/minibuf.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 6369438e700..f7065f85b6e 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -80,11 +80,6 @@ extern int minibuf_prompt_width; | |||
| 80 | 80 | ||
| 81 | #ifdef MULTI_SCREEN | 81 | #ifdef MULTI_SCREEN |
| 82 | 82 | ||
| 83 | /* When the global-minibuffer-screen is not used, this is the screen | ||
| 84 | where the minbuffer is active, and thus where certain windows | ||
| 85 | (completions, etc.) should appear. */ | ||
| 86 | struct screen *active_screen; | ||
| 87 | |||
| 88 | extern Lisp_Object Vglobal_minibuffer_screen; | 83 | extern Lisp_Object Vglobal_minibuffer_screen; |
| 89 | #endif | 84 | #endif |
| 90 | 85 | ||
| @@ -138,7 +133,14 @@ read_minibuf (map, initial, prompt, backup_n, expflag) | |||
| 138 | minibuf_save_vector[minibuf_level].current_prefix_arg); | 133 | minibuf_save_vector[minibuf_level].current_prefix_arg); |
| 139 | 134 | ||
| 140 | record_unwind_protect (Fset_window_configuration, | 135 | record_unwind_protect (Fset_window_configuration, |
| 141 | Fcurrent_window_configuration ()); | 136 | Fcurrent_window_configuration (Qnil)); |
| 137 | |||
| 138 | /* If the minibuffer window is on a different screen, save that | ||
| 139 | screen's configuration too. */ | ||
| 140 | if (XSCREEN (WINDOW_SCREEN (XWINDOW (minibuf_window))) | ||
| 141 | != selected_screen) | ||
| 142 | record_unwind_protect (Fset_window_configuration, | ||
| 143 | Fcurrent_window_configuration (WINDOW_SCREEN (XWINDOW (minibuf_window)))); | ||
| 142 | 144 | ||
| 143 | val = current_buffer->directory; | 145 | val = current_buffer->directory; |
| 144 | Fset_buffer (get_minibuffer (minibuf_level)); | 146 | Fset_buffer (get_minibuffer (minibuf_level)); |
| @@ -148,10 +150,6 @@ read_minibuf (map, initial, prompt, backup_n, expflag) | |||
| 148 | 150 | ||
| 149 | Vminibuf_scroll_window = selected_window; | 151 | Vminibuf_scroll_window = selected_window; |
| 150 | Fset_window_buffer (minibuf_window, Fcurrent_buffer ()); | 152 | Fset_window_buffer (minibuf_window, Fcurrent_buffer ()); |
| 151 | #ifdef MULTI_SCREEN | ||
| 152 | if (SCREENP (Vglobal_minibuffer_screen)) | ||
| 153 | active_screen = selected_screen; | ||
| 154 | #endif | ||
| 155 | Fselect_window (minibuf_window); | 153 | Fselect_window (minibuf_window); |
| 156 | XFASTINT (XWINDOW (minibuf_window)->hscroll) = 0; | 154 | XFASTINT (XWINDOW (minibuf_window)->hscroll) = 0; |
| 157 | 155 | ||
| @@ -202,11 +200,6 @@ read_minibuf (map, initial, prompt, backup_n, expflag) | |||
| 202 | if (expflag) | 200 | if (expflag) |
| 203 | val = Fread (val); | 201 | val = Fread (val); |
| 204 | 202 | ||
| 205 | #ifdef MULTI_SCREEN | ||
| 206 | if (active_screen) | ||
| 207 | active_screen = (struct screen *) 0; | ||
| 208 | #endif | ||
| 209 | |||
| 210 | return val; | 203 | return val; |
| 211 | } | 204 | } |
| 212 | 205 | ||