aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/frame.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index b64256eedb4..9ef36acf308 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -403,7 +403,7 @@ Each frame listed in CONFIGURATION has its position, size, window
403configuration, and other parameters set as specified in CONFIGURATION. 403configuration, and other parameters set as specified in CONFIGURATION.
404Ordinarily, this function deletes all existing frames not 404Ordinarily, this function deletes all existing frames not
405listed in CONFIGURATION. But if optional second argument NODELETE 405listed in CONFIGURATION. But if optional second argument NODELETE
406is given and non-nil, the unwanted frames are made invisible instead." 406is given and non-nil, the unwanted frames are iconified instead."
407 (or (frame-configuration-p configuration) 407 (or (frame-configuration-p configuration)
408 (signal 'wrong-type-argument 408 (signal 'wrong-type-argument
409 (list 'frame-configuration-p configuration))) 409 (list 'frame-configuration-p configuration)))
@@ -426,7 +426,11 @@ is given and non-nil, the unwanted frames are made invisible instead."
426 (setq frames-to-delete (cons frame frames-to-delete)))))) 426 (setq frames-to-delete (cons frame frames-to-delete))))))
427 (frame-list)) 427 (frame-list))
428 (if nodelete 428 (if nodelete
429 (mapcar 'make-frame-invisible frames-to-delete) 429 ;; Note: making frames invisible here was tried
430 ;; but led to some strange behavior--each time the frame
431 ;; was made visible again, the window manager asked afresh
432 ;; for where to put it.
433 (mapcar 'iconify-frame frames-to-delete)
430 (mapcar 'delete-frame frames-to-delete)))) 434 (mapcar 'delete-frame frames-to-delete))))
431 435
432(defun frame-configuration-p (object) 436(defun frame-configuration-p (object)