Subject: Re: bug#57876: [PATCH] pulse-momentary-highlight-one-line: Act on visual line

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 18 Sep 2022 14:45:33 +0200

Eli Zaretskii <[email-masked]> writes:

>> >> This variable is allegedly obsolete since Emacs 25.
>> >
>> > Sorry, I meant inhibit-field-text-motion.
>> 
>> That variable does not affect what beginning-of-visual-line does
>> w.r.t. fields, only invisible text.
>
> That's not what the doc string of inhibit-field-text-motion does, so
> it might be a bug in itself.  line-beginning-position, for example,
> does ignore fields when that variable is non-nil.

Oh, sorry!  I was confusing myself by testing with

(let ((inhibit-point-motion-hooks t)) (beginning-of-visual-line))

which is the wrong thing, of course -- with inhibit-field-text-motion it
works fine.

So adjusting the patch to use that instead might be appropriate (but
doesn't make much difference).