diff options
| author | Eli Zaretskii | 2017-05-31 19:01:31 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-05-31 19:01:31 +0300 |
| commit | 140ddc321be96c03ef234a12c56cef97a078fc07 (patch) | |
| tree | 96ea84c5cdcc8cfb9be7036bd30e702c62a736fb /etc | |
| parent | a415c8bccb917c247792c4ce8e77b2512b3414d6 (diff) | |
| download | emacs-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/NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -377,6 +377,7 @@ you may set this variable to nil. (Behind the scenes, there is now a | |||
| 377 | new mode line construct, '%C', which operates exactly as '%c' does | 377 | new mode line construct, '%C', which operates exactly as '%c' does |
| 378 | except that it counts from one.) | 378 | except that it counts from one.) |
| 379 | 379 | ||
| 380 | +++ | ||
| 380 | ** New single-line horizontal scrolling mode. | 381 | ** New single-line horizontal scrolling mode. |
| 381 | The 'auto-hscroll-mode' variable can now have a new special value, | 382 | The '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 |