GNU bug report logs - #57876
[PATCH] pulse-momentary-highlight-one-line: Act on visual line

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Sat, 17 Sep 2022 08:24:01 UTC

Severity: normal

Tags: patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #34 received at 57876 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 57876 <at> debbugs.gnu.org, public <at> protesilaos.com, arstoffel <at> gmail.com
Subject: Re: bug#57876: [PATCH] pulse-momentary-highlight-one-line: Act on
 visual line
Date: Sun, 18 Sep 2022 14:45:33 +0200
Eli Zaretskii <eliz <at> gnu.org> 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).





This bug report was last modified 2 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.