Peter Meier <[EMAIL PROTECTED]> 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
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to