From: Eli Zaretskii Date: Sat, 24 Aug 2024 08:02:01 +0000 (+0300) Subject: Fix 'next-line' in batch mode. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=72b105f3e5a90aa843dfcd1e9616ef51e18eb3ad;p=emacs.git Fix 'next-line' in batch mode. * lisp/simple.el (line-move-finish): Don't use 'vertical-motion' in batch mode. Reported by john muhl . (Bug#72420) (cherry picked from commit c1181975ef958d40959e0a6af0c8d11ae2111ec0) --- diff --git a/lisp/simple.el b/lisp/simple.el index e328409c6ae..21b54ed3696 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8071,6 +8071,7 @@ If NOERROR, don't signal an error if we can't move that many lines." ;; Move to the desired column. (if (and line-move-visual + (not noninteractive) (not (or truncate-lines (truncated-partial-width-window-p)))) ;; Under line-move-visual, goal-column should be ;; interpreted in units of the frame's canonical character