From 72b105f3e5a90aa843dfcd1e9616ef51e18eb3ad Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 24 Aug 2024 11:02:01 +0300 Subject: [PATCH] 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) --- lisp/simple.el | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5