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
22f9c48c
Commit
22f9c48c
authored
Sep 24, 2003
by
Kim F. Storm
Browse files
(window-current-scroll-bars): New defun.
parent
56cfea72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
lisp/window.el
lisp/window.el
+17
-0
No files found.
lisp/window.el
View file @
22f9c48c
...
...
@@ -75,6 +75,23 @@ If ALL-FRAMES is neither nil nor t, count only the selected frame."
(
eq
base-window
(
next-window
base-window
(
if
nomini
'arg
)
all-frames
))))
(
defun
window-current-scroll-bars
(
&optional
window
)
"Return the current scroll-bar settings in window WINDOW.
Value is a cons (VERTICAL . HORISONTAL) where VERTICAL specifies the
current location of the vertical scroll-bars (left, right, or nil),
and HORISONTAL specifies the current location of the horisontal scroll
bars (top, bottom, or nil)."
(
let
((
vert
(
nth
2
(
window-scroll-bars
window
)))
(
hor
nil
))
(
when
(
or
(
eq
vert
t
)
(
eq
hor
t
))
(
let
((
fcsb
(
frame-current-scroll-bars
(
window-frame
(
or
window
(
selected-window
))))))
(
if
(
eq
vert
t
)
(
setq
vert
(
car
fcsb
)))
(
if
(
eq
hor
t
)
(
setq
hor
(
cdr
fcsb
)))))
(
cons
vert
hor
)))
(
defun
walk-windows
(
proc
&optional
minibuf
all-frames
)
"Cycle through all visible windows, calling PROC for each one.
PROC is called with a window as argument.
...
...
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