unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* fold commented lines
@ 2008-01-05  0:14 reader
  2008-01-05  1:12 ` Tom Rauchenwald
  0 siblings, 1 reply; 3+ messages in thread
From: reader @ 2008-01-05  0:14 UTC (permalink / raw)
  To: help-gnu-emacs

I'm pretty sure folding commented lines is something emacs can  do but
I'm not finding what I need to know to do it.

An I (index) search in the manual finds a number of hits on folding
but they appear to be either about outline mode or something to do
with various searches.

Can anyone guide me to the right information?

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

* Re: fold commented lines
  2008-01-05  0:14 fold commented lines reader
@ 2008-01-05  1:12 ` Tom Rauchenwald
  2008-01-05 18:47   ` reader
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rauchenwald @ 2008-01-05  1:12 UTC (permalink / raw)
  To: help-gnu-emacs

reader@newsguy.com writes:

> I'm pretty sure folding commented lines is something emacs can  do but
> I'm not finding what I need to know to do it.
>
> An I (index) search in the manual finds a number of hits on folding
> but they appear to be either about outline mode or something to do
> with various searches.
>
> Can anyone guide me to the right information?

Maybe hs-minor-mode is what you are looking for?

Tom

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

* Re: fold commented lines
  2008-01-05  1:12 ` Tom Rauchenwald
@ 2008-01-05 18:47   ` reader
  0 siblings, 0 replies; 3+ messages in thread
From: reader @ 2008-01-05 18:47 UTC (permalink / raw)
  To: help-gnu-emacs

Tom Rauchenwald <its.sec@gmx.net> writes:

>> An I (index) search in the manual finds a number of hits on folding
>> but they appear to be either about outline mode or something to do
>> with various searches.
>>
>> Can anyone guide me to the right information?
>
> Maybe hs-minor-mode is what you are looking for?

Somehow I missed your post... thanks for the tip.

Looking at that mode and loading it, as well as in the emacs manual
page about hs-minor-mode.  I'm not seeing how to hide all comments and
still edit.

There are a number of commands involving comments.. like:
`hs-hide-comments-when-hiding-all'

But doesn't appear to be available at M-x nor does it sound like what
I want anyway.  I'd like to hide comments only or something similar.

Things that are available at M-x .. like:
  hs-hide-block

Appear not to do anything at all when a region is selected, for
example in /usr/src/linux/.config   where there are lots of commented
lines.

In fact it seems to be more involved with making stuff between parens
disappear that it is about comments.

I'm probably completely missing the boat here.

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

end of thread, other threads:[~2008-01-05 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-05  0:14 fold commented lines reader
2008-01-05  1:12 ` Tom Rauchenwald
2008-01-05 18:47   ` reader

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).