diff options
| author | Richard M. Stallman | 1993-11-07 08:10:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-07 08:10:46 +0000 |
| commit | a78db71c7291b1c4c571f3abbaf86219a9af0d2c (patch) | |
| tree | 946c1341732ccae3fadb6915bafa87bbe3fd7ed2 | |
| parent | 794ce2c1440484ab215febea4af892441fb2d82e (diff) | |
| download | emacs-a78db71c7291b1c4c571f3abbaf86219a9af0d2c.tar.gz emacs-a78db71c7291b1c4c571f3abbaf86219a9af0d2c.zip | |
(set-frame-configuration): If NODELETE, make the unwanted frames invisible.
| -rw-r--r-- | lisp/frame.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 6ba3c863f99..b64256eedb4 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -401,8 +401,9 @@ where | |||
| 401 | "Restore the frames to the state described by CONFIGURATION. | 401 | "Restore the frames to the state described by CONFIGURATION. |
| 402 | Each frame listed in CONFIGURATION has its position, size, window | 402 | Each frame listed in CONFIGURATION has its position, size, window |
| 403 | configuration, and other parameters set as specified in CONFIGURATION. | 403 | configuration, and other parameters set as specified in CONFIGURATION. |
| 404 | Unless optional second argument NODELETE is given and non-nil, deletes | 404 | Ordinarily, this function deletes all existing frames not |
| 405 | all existing frames not listed in CONFIGURATION." | 405 | listed in CONFIGURATION. But if optional second argument NODELETE |
| 406 | is given and non-nil, the unwanted frames are made invisible instead." | ||
| 406 | (or (frame-configuration-p configuration) | 407 | (or (frame-configuration-p configuration) |
| 407 | (signal 'wrong-type-argument | 408 | (signal 'wrong-type-argument |
| 408 | (list 'frame-configuration-p configuration))) | 409 | (list 'frame-configuration-p configuration))) |
| @@ -424,8 +425,9 @@ all existing frames not listed in CONFIGURATION." | |||
| 424 | (set-window-configuration (nth 2 parameters))) | 425 | (set-window-configuration (nth 2 parameters))) |
| 425 | (setq frames-to-delete (cons frame frames-to-delete)))))) | 426 | (setq frames-to-delete (cons frame frames-to-delete)))))) |
| 426 | (frame-list)) | 427 | (frame-list)) |
| 427 | (or nodelete | 428 | (if nodelete |
| 428 | (mapcar 'delete-frame frames-to-delete)))) | 429 | (mapcar 'make-frame-invisible frames-to-delete) |
| 430 | (mapcar 'delete-frame frames-to-delete)))) | ||
| 429 | 431 | ||
| 430 | (defun frame-configuration-p (object) | 432 | (defun frame-configuration-p (object) |
| 431 | "Return non-nil if OBJECT seems to be a frame configuration. | 433 | "Return non-nil if OBJECT seems to be a frame configuration. |