aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/frame.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 7cef0f3e977..367f40d6f8e 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -942,6 +942,18 @@ one frame, otherwise the name is displayed on the frame's caption bar."
942 (interactive "sFrame name: ") 942 (interactive "sFrame name: ")
943 (modify-frame-parameters (selected-frame) 943 (modify-frame-parameters (selected-frame)
944 (list (cons 'name name)))) 944 (list (cons 'name name))))
945
946(defun frame-current-scroll-bars (&optional frame)
947 "Return the current scroll-bar settings in frame FRAME.
948Value is a cons (VERTICAL . HORISONTAL) where VERTICAL specifies the
949current location of the vertical scroll-bars (left, right, or nil),
950and HORISONTAL specifies the current location of the horisontal scroll
951bars (top, bottom, or nil)."
952 (let ((vert (frame-parameter frame 'vertical-scroll-bars))
953 (hor nil))
954 (unless (memq vert '(left right nil))
955 (setq vert default-frame-scroll-bars))
956 (cons vert hor)))
945 957
946;;;; Frame/display capabilities. 958;;;; Frame/display capabilities.
947(defun display-mouse-p (&optional display) 959(defun display-mouse-p (&optional display)