From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: hiding code between line numbers Date: Sat, 18 Mar 2006 18:55:01 -0800 Organization: SunSITE.dk - Supporting Open source Message-ID: <86wter5eka.fsf@flame.pc> References: <1142610891.953530.4280@v46g2000cwv.googlegroups.com> <4805blFhqba1U1@individual.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142793645 22486 80.91.229.2 (19 Mar 2006 18:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Mar 2006 18:40:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 19 19:40:45 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 1FL2pY-00034E-75 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Mar 2006 19:40:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FL2pX-0000aD-Ku for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Mar 2006 13:40:43 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) Cancel-Lock: sha1:TH7D/e1c4KXpLCjkdrVCultT8bg= Original-Lines: 34 Original-NNTP-Posting-Host: 66.124.231.46 Original-X-Trace: news.sunsite.dk DXC=5=SLG8\IaG6Bi9D?DQ_c:4YSB=nbEKnk; BkJCK@5_U3; L^Mj72h^SL97O9E40lV]l3CX; g70YBQEc^R6N= Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:138268 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:33883 Archived-At: On Fri, 17 Mar 2006 17:09:53 +0100, 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? 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. Any suggestions are welcome. > [...] > But I use for quic jumps another feature - bookmakrs. > I've definded in my .emacs two pairs of set/jump key bindings: I also use bookmarks heavily for this sort of thing. Registers are very useful too. Ryan, if you don't know already about the `point-to-register' command (bound to `C-x /' by default), search for its description in the manual. Using registers, you can: 1. mark certain places in the code with short, one-character names by hitting `C-x / CHAR' 2. jump back to them with `C-x j CHAR' I've already read the post where you say that `hide-region.el' does what you need, but I just thought about this anyway since it's a very useful and frequently unknown feature of Emacs :) - Giorgos