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: Thien-Thi Nguyen
Subject: Re: hs-minor-mode: hs-mouse-toggle-hiding
Date: Sun, 12 Jun 2005 11:53:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Peter Meier <PeterMeier@antispam.de> writes:

> 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

i can't evaluate the merit (if any) of these ideas, since i don't use
the mouse personally (probably this is evident in the implementation of
`hs-mouse-toggle-hiding').  small hacks to facilitate mouse handling,
for inclusion in the Commentary, welcome.

thi


[*] http://www.glug.org/people/ttn/software/hideshow/
    and also in cvs emacs


reply via email to

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