help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hs-minor-mode: hs-mouse-toggle-hiding


From: Eli Zaretskii
Subject: Re: hs-minor-mode: hs-mouse-toggle-hiding
Date: Sun, 12 Jun 2005 14:36:32 +0300

> From: Thien-Thi Nguyen <ttn@glug.org>
> Date: Sun, 12 Jun 2005 11:53:59 +0200
> 
> > I'd like to use hs-minor-mode for hiding some C blocks.
> > Now I've a problem with hs-mouse-toggle-hiding.
> > If I hide a block by clicking on it, I'm not able to get it back.
> > Where must I place the click to get the block back?
> 
> recent hideshow.el[*] allows you to futz w/ the overlay (and its
> properties) at creation time via user var `hs-set-up-overlay'.
> 
> here are some ideas:
>  - reposition overlay start to beginning of line
>  - add an overlay or text-property to the fragment of text
>    between the block start and the overlay that "slides" the
>    mouse click to end of line
>  - advise `hs-mouse-toggle-hiding' to check end of line
>  - put marker or otherwise record location of block start
>    and advise `hs-mouse-toggle-hiding' to check for it

Does any of these do the obvious thing--let the click on the ellipsis
that replaces the hidden block unhide it?  If one of these does that,
I'd suggest to make it the default.  If not, add such a behavior and
make it the default.  That's the behavior I'd expect.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]