Mercurial > emacs
comparison src/xterm.c @ 11904:0d37c1e81c0d
(x_connection_closed): Unblock input, first thing.
Set Vdefault_minibuffer_frame to t
before deleting a frame that might have its own minibuffer.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 24 May 1995 20:37:08 +0000 |
parents | 8ecc60a02138 |
children | e2ab839155e1 |
comparison
equal
deleted
inserted
replaced
11903:5d0ad882565c | 11904:0d37c1e81c0d |
---|---|
4350 char *error_message; | 4350 char *error_message; |
4351 { | 4351 { |
4352 struct x_display_info *dpyinfo = x_display_info_for_display (display); | 4352 struct x_display_info *dpyinfo = x_display_info_for_display (display); |
4353 Lisp_Object frame, tail; | 4353 Lisp_Object frame, tail; |
4354 | 4354 |
4355 /* Whatever we were in the middle of, we are going to throw out of it, | |
4356 so reassure various things that have error checks about being | |
4357 called with input blocked. */ | |
4358 TOTALLY_UNBLOCK_INPUT; | |
4359 | |
4355 if (_Xdebug) | 4360 if (_Xdebug) |
4356 abort (); | 4361 abort (); |
4357 | 4362 |
4358 /* First delete frames whose minibuffers are on frames | 4363 /* First delete frames whose minibuffers are on frames |
4359 that are on the dead display. */ | 4364 that are on the dead display. */ |
4373 We are now sure none of these is used as the minibuffer | 4378 We are now sure none of these is used as the minibuffer |
4374 for another frame that we need to delete. */ | 4379 for another frame that we need to delete. */ |
4375 FOR_EACH_FRAME (tail, frame) | 4380 FOR_EACH_FRAME (tail, frame) |
4376 if (FRAME_X_P (XFRAME (frame)) | 4381 if (FRAME_X_P (XFRAME (frame)) |
4377 && FRAME_X_DISPLAY_INFO (XFRAME (frame)) == dpyinfo) | 4382 && FRAME_X_DISPLAY_INFO (XFRAME (frame)) == dpyinfo) |
4378 Fdelete_frame (frame, Qt); | 4383 { |
4384 /* Set this to t so that Fdelete_frame won't get confused | |
4385 trying to find a replacement. */ | |
4386 FRAME_KBOARD (XFRAME (frame))->Vdefault_minibuffer_frame = Qt; | |
4387 Fdelete_frame (frame, Qt); | |
4388 } | |
4379 | 4389 |
4380 x_delete_display (dpyinfo); | 4390 x_delete_display (dpyinfo); |
4381 | 4391 |
4382 if (x_display_list == 0) | 4392 if (x_display_list == 0) |
4383 { | 4393 { |