Subject: Re: bug#79294: [PATCH] Add hideable indicators for hideshow.

From: Eli Zaretskii <[email-masked]>
Date: Mon, 15 Sep 2025 15:19:51 +0300

> From: Elijah Gabe Pérez <[email-masked]>
> Cc: [email-masked]
> Date: Sun, 14 Sep 2025 19:50:02 -0600
> 
> >> +  (let* ((o (make-overlay
> >> +             ;; FIXME: The mouse-1 event doesn't work well for fringes,
> >> +             ;; a workaround for this is set the overlay at the
> >> +             ;; beginning of the line only for fringe indicators
> >> +             (if (eq hs-indicator-type 'fringe) (pos-bol) beg)
> >> +             (1+ beg)))
> >
> > What doesn't work well in mouse-1 clicks on the fringes?
> 
> Apparently the fringe keymap does not work if the overlay is not created
> from BOL:
> 
> e.g.
> 
> The mouse-1 clicks works for this since it is created at BOL:
> 
> #+begin_src elisp
> |+| (defvar-local var nil
> | |  "Docstring.")
> #+end_src
> 
> But for code blocks that are not at BOL this will not work:
> 
> #+begin_src elisp
> |+| (defvar-local var ; <- This works
> |+|   (when foo ; <- This does not
> | |     (bar))
> | |  "Docstring.")
> #+end_src

Maybe it's a bug?  Can you show a simple Lisp program that I could
evaluate in *scratch* and use to look into this issue?