GNU bug report logs -
#52092
28.0.60; hs-toggle-hiding does not toggle once folded
Previous Next
Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Date: Thu, 25 Nov 2021 07:42:01 UTC
Severity: normal
Tags: help
Found in version 28.0.60
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, Mohammed Sadiq <sadiq <at> sadiqpk.org>,
> 52092 <at> debbugs.gnu.org
> Date: Fri, 23 Sep 2022 18:01:05 -0400
>
> I had no idea that (posn-point (posn-at-point POS)) doesn't return POS
> if POS is within an invisible chunk of text and instead returns the next
> visible position.
posn-at-point uses display routines, so it cannot report on invisible
POS, because the display code skips invisible text. The doc string
kinda hints on that:
Return nil if POS is not visible in WINDOW. Otherwise,
the return value is similar to that returned by ‘event-start’ for
a mouse click at the upper left corner of the glyph corresponding
to POS:
You cannot click a mouse on a glyph corresponding to invisible text,
can you?
We could make this more clear in the documentation. I think this
usually isn't a problem because this function is not called for POS
calculated in some way, as opposed to positions actually displayed, or
nil.
This bug report was last modified 2 years and 235 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.