unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: reader@newsguy.com
To: help-gnu-emacs@gnu.org
Subject: Re: fold commented lines
Date: Sat, 05 Jan 2008 12:47:05 -0600	[thread overview]
Message-ID: <877iiow1na.fsf@newsguy.com> (raw)
In-Reply-To: 87d4sh2hze.fsf@sec.modprobe.de

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.

      reply	other threads:[~2008-01-05 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-05  0:14 fold commented lines reader
2008-01-05  1:12 ` Tom Rauchenwald
2008-01-05 18:47   ` reader [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=877iiow1na.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).