aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2017-05-31 19:01:31 +0300
committerEli Zaretskii2017-05-31 19:01:31 +0300
commit140ddc321be96c03ef234a12c56cef97a078fc07 (patch)
tree96ea84c5cdcc8cfb9be7036bd30e702c62a736fb /etc
parenta415c8bccb917c247792c4ce8e77b2512b3414d6 (diff)
downloademacs-140ddc321be96c03ef234a12c56cef97a078fc07.tar.gz
emacs-140ddc321be96c03ef234a12c56cef97a078fc07.zip
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)
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 14cada4d4f5..43e7897120f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -377,6 +377,7 @@ you may set this variable to nil. (Behind the scenes, there is now a
377new mode line construct, '%C', which operates exactly as '%c' does 377new mode line construct, '%C', which operates exactly as '%c' does
378except that it counts from one.) 378except that it counts from one.)
379 379
380+++
380** New single-line horizontal scrolling mode. 381** New single-line horizontal scrolling mode.
381The 'auto-hscroll-mode' variable can now have a new special value, 382The 'auto-hscroll-mode' variable can now have a new special value,
382'current-line', which causes only the line where the cursor is 383'current-line', which causes only the line where the cursor is