From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Giannandrea Castaldi Newsgroups: gmane.emacs.help Subject: Re: How can use outline mode in lisp code? Date: Thu, 24 Jun 2004 13:33:09 +0200 Organization: Tiscali Spa Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7e3c4lmgj0.fsf@ada2.unipv.it> 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 1088538298 26022 80.91.224.253 (29 Jun 2004 19:44:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:44:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:44:48 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfOX9-0008Ta-00 for ; Tue, 29 Jun 2004 21:44:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOYp-0003sl-K2 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:46:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!draco.tiscalinet.it!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 58 Original-NNTP-Posting-Host: host-212-123-94-100.tiscali.it Original-X-Trace: lacerta.tiscalinet.it 1088076775 17944 212.123.94.100 (24 Jun 2004 11:32:55 GMT) Original-X-Complaints-To: abuse@tiscali.it Original-NNTP-Posting-Date: 24 Jun 2004 11:32:55 GMT User-Agent: Mozilla Thunderbird 0.6 (X11/20040605) X-Accept-Language: en-us, en In-Reply-To: <7e3c4lmgj0.fsf@ada2.unipv.it> Original-Xref: shelby.stanford.edu gnu.emacs.help:123929 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19289 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19289 Thien-Thi Nguyen wrote: > Giannandrea Castaldi writes: > > >>I'm using emacs+slime to write common lisp programs (cmucl). >>I'd like to use the outline mode while I'm editing lisp >>programs. It should make invisble/visble the symbolic >>expressions of my files. How can I do it? > > > i recommend hideshow minor mode because it can handle hiding the > binding block in a let form, whereas outline cannot. it is also > "block" oriented rather than simply indentation detecting, and > thus handles nested forms better (which is nice for sexp-based > languages (like lisp :-)). for example, given the form (J and K > signify cursor positions on the line below them): > > J KL > (let ((a (list 10 > 20 > 30)) > (b 2) > (c 3)) > (list a b c)) > > hs-hide-block at J shows: > > (let ((a (list 10... > > hs-hide-block at K shows: > > (let ((a (list 10... > (list a b c)) > > hs-hide-block at L shows: > > (let ((a (list 10... > (b 2) > (c 3)) > (list a b c)) > > there are also other facilities i won't spew on about here (see > Commentary in hideshow.el for more info). > > the bad news is that currently top-level comments and "internal" > comments are handled differently. someone needs to generalize > hideshow algorithms so that the former can be implemented as a > special case of the properly-recursive latter. a bug report to > this effect has been sitting for six months, and will probably sit > for another few, until autumn, at least. some programmers are at > times extremely slow. :-/ > > thi Very useful, thanks a lot. Giannandrea