help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hiding code between line numbers


From: Pascal Bourguignon
Subject: Re: hiding code between line numbers
Date: Fri, 17 Mar 2006 17:18:53 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"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!"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]