diff options
| author | Richard M. Stallman | 1994-05-23 05:41:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-23 05:41:58 +0000 |
| commit | 38ab08d1bf538c301e7b1be739c7877b0eb411df (patch) | |
| tree | 6b331960ee529680d6aec7f88c5f3ce62d05ff86 /src/window.c | |
| parent | d56b45eba637f59584d996128329ac98b873b993 (diff) | |
| download | emacs-38ab08d1bf538c301e7b1be739c7877b0eb411df.tar.gz emacs-38ab08d1bf538c301e7b1be739c7877b0eb411df.zip | |
(window_loop, UNSHOW_BUFFER case):
Put prev change in #ifdef MULTI_FRAME.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 3994f3b8088..133229af5f6 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1265,14 +1265,27 @@ window_loop (type, obj, mini, frames) | |||
| 1265 | { | 1265 | { |
| 1266 | /* Find another buffer to show in this window. */ | 1266 | /* Find another buffer to show in this window. */ |
| 1267 | Lisp_Object another_buffer; | 1267 | Lisp_Object another_buffer; |
| 1268 | FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (w))); | ||
| 1268 | another_buffer = Fother_buffer (obj, Qnil); | 1269 | another_buffer = Fother_buffer (obj, Qnil); |
| 1269 | if (NILP (another_buffer)) | 1270 | if (NILP (another_buffer)) |
| 1270 | another_buffer | 1271 | another_buffer |
| 1271 | = Fget_buffer_create (build_string ("*scratch*")); | 1272 | = Fget_buffer_create (build_string ("*scratch*")); |
| 1272 | XWINDOW (w)->dedicated = Qnil; | 1273 | #ifdef MULTI_FRAME |
| 1273 | Fset_window_buffer (w, another_buffer); | 1274 | /* If this window is dedicated, and in a frame of its own, |
| 1274 | if (EQ (w, selected_window)) | 1275 | kill the frame. */ |
| 1275 | Fset_buffer (XWINDOW (w)->buffer); | 1276 | if (EQ (w, FRAME_ROOT_WINDOW (f)) |
| 1277 | && XWINDOW (w)->dedicated | ||
| 1278 | && other_visible_frames (f)) | ||
| 1279 | Fdelete_frame (WINDOW_FRAME (XWINDOW (w)), Qnil); | ||
| 1280 | else | ||
| 1281 | #endif | ||
| 1282 | { | ||
| 1283 | /* Otherwise show a different buffer in the window. */ | ||
| 1284 | XWINDOW (w)->dedicated = Qnil; | ||
| 1285 | Fset_window_buffer (w, another_buffer); | ||
| 1286 | if (EQ (w, selected_window)) | ||
| 1287 | Fset_buffer (XWINDOW (w)->buffer); | ||
| 1288 | } | ||
| 1276 | } | 1289 | } |
| 1277 | break; | 1290 | break; |
| 1278 | } | 1291 | } |