emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/frame.el


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/lisp/frame.el
Date: Wed, 24 Sep 2003 18:54:56 -0400

Index: emacs/lisp/frame.el
diff -c emacs/lisp/frame.el:1.204 emacs/lisp/frame.el:1.205
*** emacs/lisp/frame.el:1.204   Mon Sep  1 11:45:12 2003
--- emacs/lisp/frame.el Wed Sep 24 18:54:55 2003
***************
*** 942,947 ****
--- 942,959 ----
    (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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]