all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <usenet@informatimago.com>
Subject: Re: hiding code between line numbers
Date: Fri, 17 Mar 2006 17:18:53 +0100	[thread overview]
Message-ID: <87ek11cadu.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1142610891.953530.4280@v46g2000cwv.googlegroups.com

"Ryan Howard" <ryanghoward@comcast.net> writes:
> 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 don't know an easy way to hide one middle block

There's an easy way to hide TWO blocks, one from the start and the
other from the end:

Select what you want to see, and M-x narrow-to-region RET
(There's also narrow-to-defun and narrow-to-page)

To see the whole again, M-x widen RET



You can also use the outline-minor-mode which allows to hide the
bodies of the functions.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Indentation! -- I will show you how to indent when I indent your skull!"

  parent reply	other threads:[~2006-03-17 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 15:54 hiding code between line numbers Ryan Howard
2006-03-17 16:09 ` Marc Tfardy
2006-03-17 20:16   ` Ryan Howard
2006-03-20 16:09     ` Mathias Dahl
2006-03-19  2:55   ` Giorgos Keramidas
2006-03-17 16:18 ` Pascal Bourguignon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-03-17 16:48 Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ek11cadu.fsf@thalassa.informatimago.com \
    --to=usenet@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.