Support lower bound on hscrolling when only current line scrolls
commit140ddc321be96c03ef234a12c56cef97a078fc07
authorEli Zaretskii <eliz@gnu.org>
Wed, 31 May 2017 16:01:31 +0000 (31 19:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 31 May 2017 16:01:31 +0000 (31 19:01 +0300)
tree96ea84c5cdcc8cfb9be7036bd30e702c62a736fb
parenta415c8bccb917c247792c4ce8e77b2512b3414d6
Support lower bound on hscrolling when only current line scrolls

* doc/emacs/display.texi (Horizontal Scrolling): Document the new
mode of auto-hscrolling only the current line.

* src/xdisp.c (init_iterator): When hscrolling only the
current line, apply the window's min_hscroll here, so that
non-current lines will be hscrolled by that minimum.
Suggested by Stephen Berman <stephen.berman@gmx.net>.
(hscroll_window_tree): Account for window's min_hscroll when
deciding whether to recompute the hscroll.
(display_line): Subtract window's min_hscroll from x_incr, as that
was already accounted for in init_iterator.  (Bug#27008)
doc/emacs/display.texi
etc/NEWS
src/xdisp.c