GNU bug report logs -
#57876
[PATCH] pulse-momentary-highlight-one-line: Act on visual line
Previous Next
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 #37 received at 57876 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: arstoffel <at> gmail.com, public <at> protesilaos.com, 57876 <at> debbugs.gnu.org
> Date: Sun, 18 Sep 2022 14:45:33 +0200
>
> 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).
My point in suggesting that was that it is better to use utility
functions we have rather than the equivalent code, because the utility
functions presumably serve as a locus of all our wisdom related to
what they do. For example, what does "beginning of visual line" mean
with bidirectional text? Instead of having to decide this in each
case, we have a function that already does TRT.
This bug report was last modified 2 years and 243 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.