From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Tfardy Newsgroups: gmane.emacs.help Subject: Re: hiding code between line numbers Date: Fri, 17 Mar 2006 17:09:53 +0100 Message-ID: <4805blFhqba1U1@individual.net> References: <1142610891.953530.4280@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142613658 19997 80.91.229.2 (17 Mar 2006 16:40:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Mar 2006 16:40:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 17 17:40:55 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 1FKI0E-0000RG-WD for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Mar 2006 17:40:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKI0E-0001Wk-DM for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Mar 2006 11:40:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net fOQylgBk8xkJh/LsTmO99AUNs7pVC4XrNxyObr046+LjW632PN User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <1142610891.953530.4280@v46g2000cwv.googlegroups.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:138242 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:33861 Archived-At: 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. You could try this package: http://www.emacswiki.org/cgi-bin/emacs-de/hide-region.el But I use for quic jumps another feature - bookmakrs. I've definded in my .emacs two pairs of set/jump key bindings: (global-set-key [\M-f9] (lambda () (interactive) (bookmark-set "quick-bookmark-1"))) (global-set-key [f9] (lambda () (interactive) (bookmark-jump "quick-bookmark-1"))) (global-set-key [\M-f10] (lambda () (interactive) (bookmark-set "quick-bookmark-2"))) (global-set-key [f10] (lambda () (interactive) (bookmark-jump "quick-bookmark-2"))) This had one advantages in relation to region hide - you can quickly jumps over different files and jump points are stored for future sessions. regards Marc