From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.help Subject: Re: fold commented lines Date: Sat, 05 Jan 2008 12:47:05 -0600 Organization: Still searching... Message-ID: <877iiow1na.fsf@newsguy.com> References: <87wsqpnn6s.fsf@newsguy.com> <87d4sh2hze.fsf@sec.modprobe.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199558874 9914 80.91.229.12 (5 Jan 2008 18:47:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2008 18:47:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 05 19:48:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBE3z-0001G3-Hv for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Jan 2008 19:48:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBE3c-0005Aa-Vp for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Jan 2008 13:47:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBE3J-00057i-Of for help-gnu-emacs@gnu.org; Sat, 05 Jan 2008 13:47:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBE3I-00056o-2G for help-gnu-emacs@gnu.org; Sat, 05 Jan 2008 13:47:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBE3H-00056i-S0 for help-gnu-emacs@gnu.org; Sat, 05 Jan 2008 13:47:23 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JBE3H-000283-92 for help-gnu-emacs@gnu.org; Sat, 05 Jan 2008 13:47:23 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JBE3A-0005lQ-6l for help-gnu-emacs@gnu.org; Sat, 05 Jan 2008 18:47:16 +0000 Original-Received: from adsl-75-3-178-22.dsl.chcgil.sbcglobal.net ([75.3.178.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jan 2008 18:47:16 +0000 Original-Received: from reader by adsl-75-3-178-22.dsl.chcgil.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jan 2008 18:47:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-75-3-178-22.dsl.chcgil.sbcglobal.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:yNUrtXOF8meUF2+z3yyPKzbAu9I= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50521 Archived-At: Tom Rauchenwald 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.