Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
68cd265f
Commit
68cd265f
authored
Sep 07, 1993
by
Roland McGrath
Browse files
(set-frame-configuration): Take new optional arg NODELETE; if non-nil,
don't delete any frames.
parent
5f517806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lisp/frame.el
lisp/frame.el
+6
-3
No files found.
lisp/frame.el
View file @
68cd265f
...
...
@@ -391,10 +391,12 @@ where
(
current-window-configuration
frame
))))
(
frame-list
))))
(
defun
set-frame-configuration
(
configuration
)
(
defun
set-frame-configuration
(
configuration
&optional
nodelete
)
"Restore the frames to the state described by CONFIGURATION.
Each frame listed in CONFIGURATION has its position, size, window
configuration, and other parameters set as specified in CONFIGURATION."
configuration, and other parameters set as specified in CONFIGURATION.
Unless optional second argument NODELETE is given and non-nil, deletes
all existing frames not listed in CONFIGURATION."
(
or
(
frame-configuration-p
configuration
)
(
signal
'wrong-type-argument
(
list
'frame-configuration-p
configuration
)))
...
...
@@ -416,7 +418,8 @@ configuration, and other parameters set as specified in CONFIGURATION."
(
set-window-configuration
(
nth
2
parameters
)))
(
setq
frames-to-delete
(
cons
frame
frames-to-delete
))))))
(
frame-list
))
(
mapcar
'delete-frame
frames-to-delete
)))
(
or
nodelete
(
mapcar
'delete-frame
frames-to-delete
))))
(
defun
frame-configuration-p
(
object
)
"Return non-nil if OBJECT seems to be a frame configuration.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment