aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/window.c10
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ae35ff6cce2..2b631dfc5f9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12014-02-21 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (Fwindow_scroll_bar_width): New function.
4
12014-02-21 Paul Eggert <eggert@cs.ucla.edu> 52014-02-21 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Pacify GCC when configuring with --enable-gcc-warnings. 7 Pacify GCC when configuring with --enable-gcc-warnings.
diff --git a/src/window.c b/src/window.c
index b2c97d52157..0f62838d672 100644
--- a/src/window.c
+++ b/src/window.c
@@ -974,6 +974,15 @@ WINDOW must be a live window and defaults to the selected one. */)
974 return (make_number (WINDOW_BOTTOM_DIVIDER_WIDTH (decode_live_window (window)))); 974 return (make_number (WINDOW_BOTTOM_DIVIDER_WIDTH (decode_live_window (window))));
975} 975}
976 976
977DEFUN ("window-scroll-bar-width", Fwindow_scroll_bar_width,
978 Swindow_scroll_bar_width, 0, 1, 0,
979 doc: /* Return the width in pixels of WINDOW's vertical scrollbar.
980WINDOW must be a live window and defaults to the selected one. */)
981 (Lisp_Object window)
982{
983 return (make_number (WINDOW_SCROLL_BAR_AREA_WIDTH (decode_live_window (window))));
984}
985
977DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, 986DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0,
978 doc: /* Return the number of columns by which WINDOW is scrolled from left margin. 987 doc: /* Return the number of columns by which WINDOW is scrolled from left margin.
979WINDOW must be a live window and defaults to the selected one. */) 988WINDOW must be a live window and defaults to the selected one. */)
@@ -7363,6 +7372,7 @@ pixelwise even if this option is nil. */);
7363 defsubr (&Swindow_header_line_height); 7372 defsubr (&Swindow_header_line_height);
7364 defsubr (&Swindow_right_divider_width); 7373 defsubr (&Swindow_right_divider_width);
7365 defsubr (&Swindow_bottom_divider_width); 7374 defsubr (&Swindow_bottom_divider_width);
7375 defsubr (&Swindow_scroll_bar_width);
7366 defsubr (&Swindow_inside_edges); 7376 defsubr (&Swindow_inside_edges);
7367 defsubr (&Swindow_inside_pixel_edges); 7377 defsubr (&Swindow_inside_pixel_edges);
7368 defsubr (&Swindow_inside_absolute_pixel_edges); 7378 defsubr (&Swindow_inside_absolute_pixel_edges);