From: Stephen Berman Date: Thu, 4 Nov 2021 18:39:01 +0000 (+0100) Subject: Fix allout point movement problem X-Git-Tag: emacs-29.0.90~3671^2~244 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a7ccdaeeff3cf91cc548e3cbd21d3f32c7dac7b;p=emacs.git Fix allout point movement problem * lisp/allout.el (allout-next-visible-heading): Ensure that we move to the next physical line (bug#51530). --- diff --git a/lisp/allout.el b/lisp/allout.el index 5102ee73412..174184fc7ad 100644 --- a/lisp/allout.el +++ b/lisp/allout.el @@ -3079,6 +3079,8 @@ Move to buffer limit in indicated direction if headings are exhausted." (backward (if (< arg 0) (setq arg (* -1 arg)))) (step (if backward -1 1)) (progress (allout-current-bullet-pos)) + ;; Move to the next physical line. + (line-move-visual nil) prev got) (while (> arg 0)