* hs-minor-mode: hs-mouse-toggle-hiding
@ 2005-06-08 0:43 Peter Meier
2005-06-08 3:46 ` Eli Zaretskii
2005-06-12 9:53 ` Thien-Thi Nguyen
0 siblings, 2 replies; 5+ messages in thread
From: Peter Meier @ 2005-06-08 0:43 UTC (permalink / raw)
Hi all,
I want to use Emacs as editor for Programming C and C++.
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?
Thanks
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hs-minor-mode: hs-mouse-toggle-hiding
2005-06-08 0:43 hs-minor-mode: hs-mouse-toggle-hiding Peter Meier
@ 2005-06-08 3:46 ` Eli Zaretskii
2005-06-12 9:53 ` Thien-Thi Nguyen
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2005-06-08 3:46 UTC (permalink / raw)
> Date: Wed, 08 Jun 2005 08:43:33 +0800
> From: Peter Meier <PeterMeier@antispam.de>
>
> 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?
You should click on the "..." that replaces the hidden block. If that
doesn't work in some case, please report that as a bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hs-minor-mode: hs-mouse-toggle-hiding
2005-06-08 0:43 hs-minor-mode: hs-mouse-toggle-hiding Peter Meier
2005-06-08 3:46 ` Eli Zaretskii
@ 2005-06-12 9:53 ` Thien-Thi Nguyen
2005-06-12 11:36 ` Eli Zaretskii
[not found] ` <mailman.4399.1118576613.25862.help-gnu-emacs@gnu.org>
1 sibling, 2 replies; 5+ messages in thread
From: Thien-Thi Nguyen @ 2005-06-12 9:53 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hs-minor-mode: hs-mouse-toggle-hiding
2005-06-12 9:53 ` Thien-Thi Nguyen
@ 2005-06-12 11:36 ` Eli Zaretskii
[not found] ` <mailman.4399.1118576613.25862.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2005-06-12 11:36 UTC (permalink / raw)
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hs-minor-mode: hs-mouse-toggle-hiding
[not found] ` <mailman.4399.1118576613.25862.help-gnu-emacs@gnu.org>
@ 2005-06-12 19:02 ` Stefan Monnier
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2005-06-12 19:02 UTC (permalink / raw)
> 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.
IIRC you can't do that right now. Just like you can't put a mouse-face on
them either.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-12 19:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-08 0:43 hs-minor-mode: hs-mouse-toggle-hiding Peter Meier
2005-06-08 3:46 ` Eli Zaretskii
2005-06-12 9:53 ` Thien-Thi Nguyen
2005-06-12 11:36 ` Eli Zaretskii
[not found] ` <mailman.4399.1118576613.25862.help-gnu-emacs@gnu.org>
2005-06-12 19:02 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).