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
7f77f3c8
Commit
7f77f3c8
authored
Jun 11, 1995
by
Karl Heuer
Browse files
(save-selected-window): New macro.
parent
6816efce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lisp/window.el
lisp/window.el
+8
-0
No files found.
lisp/window.el
View file @
7f77f3c8
...
...
@@ -76,6 +76,14 @@ Anything else means restrict to WINDOW's frame."
(
defun
minibuffer-window-active-p
(
window
)
"Return t if WINDOW (a minibuffer window) is now active."
(
eq
window
(
active-minibuffer-window
)))
(
defmacro
save-selected-window
(
&rest
body
)
"Execute BODY, then select the window that was selected before BODY."
(
list
'let
'
((
save-selected-window-window
(
selected-window
)))
(
list
'unwind-protect
(
cons
'progn
body
)
(
list
'select-window
'save-selected-window-window
))))
(
defun
count-windows
(
&optional
minibuf
)
"Returns the number of visible windows.
...
...
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