From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Phillip Lord" Newsgroups: gmane.emacs.help Subject: RE: hiding code between line numbers Date: Fri, 17 Mar 2006 16:48:40 -0000 Message-ID: <6942EE35B530F84EAD432959F5E4DAB501EADFE5@largo.campus.ncl.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1142614161 22168 80.91.229.2 (17 Mar 2006 16:49:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Mar 2006 16:49:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 17 17:49:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FKI8Y-0002Kj-1g for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Mar 2006 17:49:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKI8X-00046a-A5 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Mar 2006 11:49:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FKI8J-000461-4D for help-gnu-emacs@gnu.org; Fri, 17 Mar 2006 11:48:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FKI8H-00045p-HX for help-gnu-emacs@gnu.org; Fri, 17 Mar 2006 11:48:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKI8H-00045m-CQ for help-gnu-emacs@gnu.org; Fri, 17 Mar 2006 11:48:57 -0500 Original-Received: from [128.240.234.65] (helo=cheviot3.ncl.ac.uk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FKIDB-0004Ln-P9 for help-gnu-emacs@gnu.org; Fri, 17 Mar 2006 11:54:02 -0500 Original-Received: from largo.campus.ncl.ac.uk (largo.ncl.ac.uk [10.8.234.184]) by cheviot3.ncl.ac.uk (8.13.1/8.13.1) with ESMTP id k2HGmfuc030459 for ; Fri, 17 Mar 2006 16:48:41 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: hiding code between line numbers Thread-Index: AcZJ4Yu6dpjtzot+TWS5c+gYZpQHbwAANATw Original-To: X-Newcastle-MailScanner-Information: Please contact Postmaster@newcastle.ac.uk for more information X-Newcastle-MailScanner: Found to be clean X-Newcastle-MailScanner-MCPCheck: MCP-Clean, MCP-Checker (score=0, required 1) X-Newcastle-MailScanner-From: npl25@cpx.ncl.ac.uk X-NCL-Spam-Status: No 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:33864 Archived-At: Marc Tfardy wrote: > Ryan Howard schrieb: >> I am editing a long program and would like to be able to hide lines >> 156 to 979. This would allow me to page up quickly from line 985 >> and see variable names created on line 150. Is there an easy way to >> do this?=20 >>=20 >> I sometimes split the buffer with Cx-2, but there are cases where I >> have multiple sections in the program that I would like to hide just >> to allow quicker scrolling.=20 >>=20 >> Any suggestions are welcome. >=20 > You could try this package: >=20 > http://www.emacswiki.org/cgi-bin/emacs-de/hide-region.el >=20 For programme code, hide-show and folding mode are both very good.=20 These hide based on the structure of the programme which is normally what you want. There is allout.el as well, which I've not tried but saw recently.=20 Also worth taking a look at is ECB (Emacs code browser). Doesn't do at all what you want, but does allow you to see variables in=20 a file, as well as a methods and move backwards and forwards between them very efficiently.=20 Cheers Phil