emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 59c4d5f: Fix bug #19211 with move-end-of-line in


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-24 59c4d5f: Fix bug #19211 with move-end-of-line in non-interactive session.
Date: Sun, 30 Nov 2014 16:07:30 +0000

branch: emacs-24
commit 59c4d5f95337d6393edb5ffe6b9ef74e4f89058f
Author: Eli Zaretskii <address@hidden>
Date:   Sun Nov 30 18:06:19 2014 +0200

    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.
---
 lisp/ChangeLog |    7 +++++++
 lisp/simple.el |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9a45f08..726d9b0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
+2014-11-30  Eli Zaretskii  <address@hidden>
+
+       * 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  <address@hidden>
            Stefan Monnier  <address@hidden>
 
diff --git a/lisp/simple.el b/lisp/simple.el
index 0c0e815..65fcf6e 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]