Subject: bug#55514: 29.0.50; Keyboard macros and visual-line-mode

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 May 2022 10:01:51 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: [email-masked]
> Date: Fri, 20 May 2022 01:41:30 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Maybe all we need is to add a hook that will be called by
> > kmacro-call-macro before running the macro.  Then users can do
> > whatever they like in that hook, including turning off
> > line-move-visual (which I'm guessing is what you meant, not
> > visual-line-mode).
> 
> But that doesn't really fix the issue -- the non-visual-line-moving
> commands have to be replicated when we execute the macro.

No, you need just turn off line-move-visual in that hook, then C-n
will follow physical lines instead of visual lines, which is AFAIU
what you wanted.