diff options
| author | Eli Zaretskii | 2012-11-20 19:44:04 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-20 19:44:04 +0200 |
| commit | 7cf95797aff43cb59fec03905a8937d41e68ada1 (patch) | |
| tree | 789114801a6b7a1cc1fd4eb9247b32157a9b8e02 | |
| parent | 9aef4c1281d3adc1a348d802dc3a7d192006ae33 (diff) | |
| download | emacs-7cf95797aff43cb59fec03905a8937d41e68ada1.tar.gz emacs-7cf95797aff43cb59fec03905a8937d41e68ada1.zip | |
Fix bug #12927 with scrolling under hl-line-mode and scroll-conservatively.
lisp/simple.el (line-move): Don't call line-move-partial if
scroll-conservatively is in effect.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 247222bde21..225f296e135 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-11-20 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * simple.el (line-move): Don't call line-move-partial if | ||
| 4 | scroll-conservatively is in effect. (Bug#12927) | ||
| 5 | |||
| 1 | 2012-11-20 Michael Albinus <michael.albinus@gmx.de> | 6 | 2012-11-20 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/trampver.el (tramp-version): Downgrade to 2.2.6-24.3, in | 8 | * net/trampver.el (tramp-version): Downgrade to 2.2.6-24.3, in |
diff --git a/lisp/simple.el b/lisp/simple.el index aed945d6e13..5867561da26 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4583,6 +4583,9 @@ lines." | |||
| 4583 | (unless (and auto-window-vscroll try-vscroll | 4583 | (unless (and auto-window-vscroll try-vscroll |
| 4584 | ;; Only vscroll for single line moves | 4584 | ;; Only vscroll for single line moves |
| 4585 | (= (abs arg) 1) | 4585 | (= (abs arg) 1) |
| 4586 | ;; Under scroll-conservatively, the display engine | ||
| 4587 | ;; does this better. | ||
| 4588 | (zerop scroll-conservatively) | ||
| 4586 | ;; But don't vscroll in a keyboard macro. | 4589 | ;; But don't vscroll in a keyboard macro. |
| 4587 | (not defining-kbd-macro) | 4590 | (not defining-kbd-macro) |
| 4588 | (not executing-kbd-macro) | 4591 | (not executing-kbd-macro) |