From: Thien-Thi Nguyen <ttn@glug.org>
Subject: Re: hs-minor-mode: hs-mouse-toggle-hiding
Date: Sun, 12 Jun 2005 11:53:59 +0200 [thread overview]
Message-ID: <7eis0j6gug.fsf@ada2.unipv.it> (raw)
In-Reply-To: 42a63f3d$0$13486$9b4e6d93@newsread2.arcor-online.net
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
next prev parent reply other threads:[~2005-06-12 9:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7eis0j6gug.fsf@ada2.unipv.it \
--to=ttn@glug.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.