GNU bug report logs - #79294
[PATCH] Add hideable indicators for hideshow.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sat, 23 Aug 2025 04:57:02 UTC

Severity: normal

Tags: patch

Full log


Message #29 received at 79294 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 79294 <at> debbugs.gnu.org
Subject: Re: bug#79294: [PATCH] Add hideable indicators for hideshow.
Date: Mon, 15 Sep 2025 15:19:51 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: 79294 <at> debbugs.gnu.org
> 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?




This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.