Mercurial > emacs
changeset 52614:a77e35d5d0c2
(frame-current-scroll-bars): New defun.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 24 Sep 2003 22:54:55 +0000 |
parents | b9d9fbfea220 |
children | de1a002c48c7 |
files | lisp/frame.el |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/frame.el Wed Sep 24 15:52:21 2003 +0000 +++ b/lisp/frame.el Wed Sep 24 22:54:55 2003 +0000 @@ -942,6 +942,18 @@ (interactive "sFrame name: ") (modify-frame-parameters (selected-frame) (list (cons 'name name)))) + +(defun frame-current-scroll-bars (&optional frame) + "Return the current scroll-bar settings in frame FRAME. +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 (frame-parameter frame 'vertical-scroll-bars)) + (hor nil)) + (unless (memq vert '(left right nil)) + (setq vert default-frame-scroll-bars)) + (cons vert hor))) ;;;; Frame/display capabilities. (defun display-mouse-p (&optional display)