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
e0de7bcb
Commit
e0de7bcb
authored
Mar 20, 1994
by
Richard M. Stallman
Browse files
(one-window-p): New argument all-frames.
parent
89851a09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lisp/subr.el
lisp/subr.el
+9
-3
No files found.
lisp/subr.el
View file @
e0de7bcb
...
...
@@ -53,15 +53,21 @@ BODY should be a list of lisp expressions."
;;;; Window tree functions.
(
defun
one-window-p
(
&optional
nomini
)
(
defun
one-window-p
(
&optional
nomini
all-frames
)
"Returns non-nil if there is only one window.
Optional arg NOMINI non-nil means don't count the minibuffer
even if it is active."
even if it is active.
The optional arg ALL-FRAMES t means count windows on all frames.
If it is `visible', count windows on all visible frames.
ALL-FRAMES nil or omitted means count only the selected frame,
plus the minibuffer it uses (which may be on another frame).
If ALL-FRAMES is neither nil nor t, count only the selected frame."
(
let
((
base-window
(
selected-window
)))
(
if
(
and
nomini
(
eq
base-window
(
minibuffer-window
)))
(
setq
base-window
(
next-window
base-window
)))
(
eq
base-window
(
next-window
base-window
(
if
nomini
'arg
)))))
(
next-window
base-window
(
if
nomini
'arg
)
all-frames
))))
(
defun
walk-windows
(
proc
&optional
minibuf
all-frames
)
"Cycle through all visible windows, calling PROC for each one.
...
...
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