Subject: bug#52092: 28.0.60; hs-toggle-hiding does not toggle once folded

From: kobarity <[email-masked]>
Date: Sat, 24 Sep 2022 14:59:56 +0900

Stefan Monnier wrote:
> The patch below should fix it.

Thanks, I didn't know `last-nonmenu-event'.  I confirmed that the
patch enables the mouse to hide the clicked block.

> 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.
> 
> I'll have to think about how best to fix the consequence.

Thank you for consideration.

Regards,