From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: hs-minor-mode: hs-mouse-toggle-hiding Date: Sun, 12 Jun 2005 11:53:59 +0200 Organization: sometimes Message-ID: <7eis0j6gug.fsf@ada2.unipv.it> References: <42a63f3d$0$13486$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118570735 25637 80.91.229.2 (12 Jun 2005 10:05:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2005 10:05:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 12 12:05:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhPLA-00071P-3C for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jun 2005 12:05:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhPPi-0001Hv-Pl for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jun 2005 06:09:58 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!newscore.univie.ac.at!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1118570040 19487 193.204.44.145 (12 Jun 2005 09:54:00 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sun, 12 Jun 2005 09:54:00 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:DARIUh7v/DT4uf3lPk3X8Ldp45g= Original-Xref: shelby.stanford.edu gnu.emacs.help:131953 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27423 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27423 Peter Meier 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