From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juha Newsgroups: gmane.emacs.devel Subject: Re: Furna's fisheye minor mode Date: Wed, 21 Jan 2004 12:37:58 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <400E5686.2030208@tml.hut.fi> References: <400D4271.6070602@tml.hut.fi> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074682632 21393 80.91.224.253 (21 Jan 2004 10:57:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2004 10:57:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 21 11:57:05 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AjG2j-0003pb-00 for ; Wed, 21 Jan 2004 11:57:05 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AjG2i-0003Rj-00 for ; Wed, 21 Jan 2004 11:57:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjFxC-0002GX-HO for emacs-devel@quimby.gnus.org; Wed, 21 Jan 2004 05:51:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AjFwm-0002DR-3t for emacs-devel@gnu.org; Wed, 21 Jan 2004 05:50:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AjFwF-0001hX-Hr for emacs-devel@gnu.org; Wed, 21 Jan 2004 05:50:54 -0500 Original-Received: from [212.90.64.119] (helo=smtp1.pp.htv.fi) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjFwF-0001h0-2A for emacs-devel@gnu.org; Wed, 21 Jan 2004 05:50:23 -0500 Original-Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by smtp1.pp.htv.fi (Postfix) with ESMTP id 44DB08000D; Wed, 21 Jan 2004 12:50:22 +0200 (EET) Original-Received: from tml.hut.fi (cs78173130.pp.htv.fi [62.78.173.130]) by posti.pp.htv.fi (8.11.1 (Revision 1.5+JAGae91741+JAGae92668) /8.11.1) with ESMTP id i0LAoHT15427; Wed, 21 Jan 2004 12:50:18 +0200 (EET) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031001 X-Accept-Language: en-us, en Original-To: Stefan Monnier , emacs-devel@gnu.org In-Reply-To: X-Enigmail-Version: 0.76.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19396 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19396 > Most interesting would be to know "what does the user have to do to > hide/unhide parts of the text and to tell which parts to hide/unhide". You can define the level on indentation for a high level feature, everything that has more is a low level feature. If the point is close enough, all levels of indentation are shown. Hiding and unhiding is done automatically as you move the point. > I suppose it's slow because you use line-counts rather than > buffer positions. I recommend you begin by removing fisheye-count-lines > and figure out how to get your code working again without using it. > That'll speed it up tremendously. Ok. I guess I could use the number of characters as a distance measure. > the buffer based on the user's movement (like reveal-mode does) ? reveal-mode? I'm running 21.2.1 and I don't have a reveal-mode. > Using post-command-hook sounds about right. In many cases you can try to > answer "why do I need to know whether point has moved" in order to avoid > having to answer the first question, tho. It's the automatic hiding/unhiding that I want. juha