diff options
| author | Richard M. Stallman | 1993-06-12 17:16:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-12 17:16:00 +0000 |
| commit | 5061d9c33d7086086be1f69ef37c5c0dbd586eb3 (patch) | |
| tree | 73e3b6d816d9979e0f0198452f69f0506981b9c1 /src | |
| parent | b2a7698263036b1986825065baa36c8ae5aabcbd (diff) | |
| download | emacs-5061d9c33d7086086be1f69ef37c5c0dbd586eb3.tar.gz emacs-5061d9c33d7086086be1f69ef37c5c0dbd586eb3.zip | |
(read_minibuf): Set and use mini_frame only if MULTI_FRAME.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 9987b71578e..f7043d8afa6 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -106,14 +106,14 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos) | |||
| 106 | Lisp_Object map; | 106 | Lisp_Object map; |
| 107 | Lisp_Object initial; | 107 | Lisp_Object initial; |
| 108 | Lisp_Object prompt; | 108 | Lisp_Object prompt; |
| 109 | int backup_n; | 109 | Lisp_Object backup_n; |
| 110 | int expflag; | 110 | int expflag; |
| 111 | Lisp_Object histvar; | 111 | Lisp_Object histvar; |
| 112 | Lisp_Object histpos; | 112 | Lisp_Object histpos; |
| 113 | { | 113 | { |
| 114 | register Lisp_Object val; | 114 | register Lisp_Object val; |
| 115 | int count = specpdl_ptr - specpdl; | 115 | int count = specpdl_ptr - specpdl; |
| 116 | Lisp_Object mini_frame = WINDOW_FRAME (XWINDOW (minibuf_window)); | 116 | Lisp_Object mini_frame; |
| 117 | struct gcpro gcpro1, gcpro2; | 117 | struct gcpro gcpro1, gcpro2; |
| 118 | 118 | ||
| 119 | if (XTYPE (prompt) != Lisp_String) | 119 | if (XTYPE (prompt) != Lisp_String) |
| @@ -153,11 +153,12 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos) | |||
| 153 | 153 | ||
| 154 | /* If the minibuffer window is on a different frame, save that | 154 | /* If the minibuffer window is on a different frame, save that |
| 155 | frame's configuration too. */ | 155 | frame's configuration too. */ |
| 156 | #ifdef MULTI_FRAME | ||
| 157 | XSET (mini_frame, Lisp_Frame, WINDOW_FRAME (XWINDOW (minibuf_window))); | ||
| 156 | if (XFRAME (mini_frame) != selected_frame) | 158 | if (XFRAME (mini_frame) != selected_frame) |
| 157 | { | 159 | record_unwind_protect (Fset_window_configuration, |
| 158 | record_unwind_protect (Fset_window_configuration, | 160 | Fcurrent_window_configuration (mini_frame)); |
| 159 | Fcurrent_window_configuration (mini_frame)); | 161 | #endif |
| 160 | } | ||
| 161 | 162 | ||
| 162 | val = current_buffer->directory; | 163 | val = current_buffer->directory; |
| 163 | Fset_buffer (get_minibuffer (minibuf_level)); | 164 | Fset_buffer (get_minibuffer (minibuf_level)); |