]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/window.c (Fwindow_scroll_bars): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Mon, 13 May 2024 05:00:38 +0000 (08:00 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:50:49 +0000 (20:50 +0200)
(cherry picked from commit 60b1768dc50c33a6788a626351f9d902a859b622)

src/window.c

index 2ef26e57681a807b57a0016f6f197a72c9dc08ce..95df13e22ed64509f1411812a7c13fb6e106a5ff 100644 (file)
@@ -8195,9 +8195,18 @@ DEFUN ("window-scroll-bars", Fwindow_scroll_bars, Swindow_scroll_bars,
 WINDOW must be a live window and defaults to the selected one.
 
 Value is a list of the form (WIDTH COLUMNS VERTICAL-TYPE HEIGHT LINES
-HORIZONTAL-TYPE PERSISTENT), see `set-window-scroll-bars'.  If WIDTH
-or HEIGHT is nil or VERTICAL-TYPE or HORIZONTAL-TYPE is t, WINDOW is
-using the frame's corresponding value.  */)
+HORIZONTAL-TYPE PERSISTENT).  WIDTH reports the pixel width of the
+vertical scroll bar; COLUMNS is the equivalent number of columns.
+Similarly, HEIGHT and LINES are the height of the horizontal scroll
+bar in pixels and the equivalent number of lines.  VERTICAL-TYPE
+reports the type of the vertical scroll bar, either left, right, nil,
+or t.  HORIZONTAL-TYPE reports the type of the horizontal scroll bar,
+either bottom, nil or t.  PERSISTENT reports the value specified by
+the last successful call to `set-window-scroll-bars', or nil if there
+was none.
+
+If WIDTH or HEIGHT is nil or VERTICAL-TYPE or HORIZONTAL-TYPE is t,
+WINDOW is using the corresponding value specified for the frame.  */)
   (Lisp_Object window)
 {
   struct window *w = decode_live_window (window);