From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 52092@debbugs.gnu.org, kobarity@gmail.com, sadiq@sadiqpk.org
Subject: bug#52092: 28.0.60; hs-toggle-hiding does not toggle once folded
Date: Sat, 24 Sep 2022 09:17:53 +0300 [thread overview]
Message-ID: <83v8pdnvn2.fsf@gnu.org> (raw)
In-Reply-To: <jwvv8pdiwuw.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Fri, 23 Sep 2022 18:01:05 -0400)
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, Mohammed Sadiq <sadiq@sadiqpk.org>,
> 52092@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.
next prev parent reply other threads:[~2022-09-24 6:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 7:40 bug#52092: 28.0.60; hs-toggle-hiding does not toggle once folded Mohammed Sadiq
2021-11-25 10:29 ` Eli Zaretskii
2022-09-19 6:31 ` kobarity
2022-09-23 22:01 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-24 5:59 ` kobarity
2022-09-24 15:10 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-25 2:26 ` kobarity
2022-09-24 6:17 ` Eli Zaretskii [this message]
2022-09-24 15:11 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83v8pdnvn2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=52092@debbugs.gnu.org \
--cc=kobarity@gmail.com \
--cc=monnier@iro.umontreal.ca \
--cc=sadiq@sadiqpk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).