unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* HInding Lines
@ 2003-03-10 16:27 Artist
  2003-03-10 19:01 ` David Masterson
  2003-03-11  3:58 ` Edward Dodge
  0 siblings, 2 replies; 5+ messages in thread
From: Artist @ 2003-03-10 16:27 UTC (permalink / raw)


Hi, While doing the development work with emacs, I just want to hide
certain lines. These lines does not constitute functions and I cannot
use narrow-region as I like to see the entire file. So something like
hide-region or hide-regions would be helpful. How I can use outline
mode to hide effectively what I want to hide from point 'A' to point
'B'.

Thanks,
[artist]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HInding Lines
  2003-03-10 16:27 HInding Lines Artist
@ 2003-03-10 19:01 ` David Masterson
  2003-03-11  1:30   ` Artist
  2003-03-11  3:58 ` Edward Dodge
  1 sibling, 1 reply; 5+ messages in thread
From: David Masterson @ 2003-03-10 19:01 UTC (permalink / raw)


>>>>> Artist  writes:

> Hi, While doing the development work with emacs, I just want to hide
> certain lines. These lines does not constitute functions and I
> cannot use narrow-region as I like to see the entire file. So
> something like hide-region or hide-regions would be helpful. How I
> can use outline mode to hide effectively what I want to hide from
> point 'A' to point 'B'.

Sounds like you want folding.el.  You'll have to put comments into
your code to denote the beginning and ending of the fold, but, other
than that, it sounds like what you want.

-- 
David Masterson                David DOT Masterson AT synopsys DOT com
Sr. R&D Engineer               Synopsys, Inc.
Software Engineering           Sunnyvale, CA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HInding Lines
  2003-03-10 19:01 ` David Masterson
@ 2003-03-11  1:30   ` Artist
  2003-03-11 15:33     ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Artist @ 2003-03-11  1:30 UTC (permalink / raw)


David Masterson <David.Masterson@synopsys.com> wrote in message news:<u65qrnj0d.fsf@synopsys.com>...
> >>>>> Artist  writes:
>  
> > Hi, While doing the development work with emacs, I just want to hide
> > certain lines. These lines does not constitute functions and I
> > cannot use narrow-region as I like to see the entire file. So
> > something like hide-region or hide-regions would be helpful. How I
> > can use outline mode to hide effectively what I want to hide from
> > point 'A' to point 'B'.
> 
> Sounds like you want folding.el.  You'll have to put comments into
> your code to denote the beginning and ending of the fold, but, other
> than that, it sounds like what you want.

Hi,
 I will try folding.el.
 One problem:
 If I put comment surrounding that, I may not run my code properly.
 What I can do is to put some commented boundary around that as an alternative.
 Remembering the points like registers would be a better solution.

Thanks,
Artist.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HInding Lines
  2003-03-10 16:27 HInding Lines Artist
  2003-03-10 19:01 ` David Masterson
@ 2003-03-11  3:58 ` Edward Dodge
  1 sibling, 0 replies; 5+ messages in thread
From: Edward Dodge @ 2003-03-11  3:58 UTC (permalink / raw)


googleartist@yahoo.com (Artist) writes:

> Hi, While doing the development work with emacs, I just want to hide
> certain lines. These lines does not constitute functions and I
> cannot use narrow-region as I like to see the entire file. So
> something like hide-region or hide-regions would be helpful. How I
> can use outline mode to hide effectively what I want to hide from
> point 'A' to point 'B'.

I think what you want to do is slip into 'M-x outline-mode' and then
go to the level of indentation you want to hide (e.g. 4 spaces in) and
hit 'C-x $.'  Study up on it,  'cause I can't remember how to "unhide"
offhand. 

-- 
Edward Dodge

/Confabulation Consulting/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HInding Lines
  2003-03-11  1:30   ` Artist
@ 2003-03-11 15:33     ` Kai Großjohann
  0 siblings, 0 replies; 5+ messages in thread
From: Kai Großjohann @ 2003-03-11 15:33 UTC (permalink / raw)


googleartist@yahoo.com (Artist) writes:

>  If I put comment surrounding that, I may not run my code properly.

I think there is a misunderstanding.  folding.el requires comment
lines with start markers and comment lines with end markers, and then
hides the code between the two lines.

In most programming languages, you can add comment lines in most
places without affecting the program.
-- 
A preposition is not a good thing to end a sentence with.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-11 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-10 16:27 HInding Lines Artist
2003-03-10 19:01 ` David Masterson
2003-03-11  1:30   ` Artist
2003-03-11 15:33     ` Kai Großjohann
2003-03-11  3:58 ` Edward Dodge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).