From c544322e3ec57461f0090fc6f1991f460656b8e9 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 12 Jul 2013 11:33:14 +0300 Subject: [PATCH] Fix bug #14842 with doc strings of next-line and previous-line. lisp/simple.el (next-line, previous-line): Document TRY-VSCROLL. --- lisp/ChangeLog | 5 +++++ lisp/simple.el | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c9957d29911..8e039421e30 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-07-12 Eli Zaretskii + + * simple.el (next-line, previous-line): Document TRY-VSCROLL. + (Bug#14842) + 2013-07-12 Glenn Morris * doc-view.el: Require cl-lib at runtime too. diff --git a/lisp/simple.el b/lisp/simple.el index 9774bc0e292..85d06ff89f0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -4602,6 +4602,10 @@ for it.") (defun next-line (&optional arg try-vscroll) "Move cursor vertically down ARG lines. Interactively, vscroll tall lines if `auto-window-vscroll' is enabled. +Non-interactively, use TRY-VSCROLL to control whether to vscroll tall +lines: if either `auto-window-vscroll' or TRY-VSCROLL is nil, this +function will not vscroll. + If there is no character in the target line exactly under the current column, the cursor is positioned after the character in that line which spans this column, or at the end of the line if it is not long enough. @@ -4646,6 +4650,10 @@ and more reliable (no dependence on goal column, etc.)." (defun previous-line (&optional arg try-vscroll) "Move cursor vertically up ARG lines. Interactively, vscroll tall lines if `auto-window-vscroll' is enabled. +Non-interactively, use TRY-VSCROLL to control whether to vscroll tall +lines: if either `auto-window-vscroll' or TRY-VSCROLL is nil, this +function will not vscroll. + If there is no character in the target line exactly over the current column, the cursor is positioned after the character in that line which spans this column, or at the end of the line if it is not long enough. -- 2.39.2