Commit 59c4d5f9 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix bug #19211 with move-end-of-line in non-interactive session.

 lisp/simple.el (line-move): If noninteractive, call line-move-1, not
 forward-line, since the former is compatible with line-move-visual
 both in terms of the column to which it moves and the return
 value.
parent babb0ca8
2014-11-30 Eli Zaretskii <eliz@gnu.org>
* simple.el (line-move): If noninteractive, call line-move-1, not
forward-line, since the former is compatible with line-move-visual
both in terms of the column to which it moves and the return
value. (Bug#19211)
2014-11-27 Stephen Berman <stephen.berman@gmx.net>
Stefan Monnier <monnier@iro.umontreal.ca>
......
......@@ -5191,7 +5191,7 @@ TRY-VSCROLL controls whether to vscroll tall lines: if either
`auto-window-vscroll' or TRY-VSCROLL is nil, this function will
not vscroll."
(if noninteractive
(forward-line arg)
(line-move-1 arg noerror to-end)
(unless (and auto-window-vscroll try-vscroll
;; Only vscroll for single line moves
(= (abs arg) 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment