From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: How to fold any text as I want? Date: Fri, 02 Nov 2007 11:13:52 +0000 Message-ID: <87tzo4aoi7.fsf@bzg.ath.cx> References: <472A7D59.7050207@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193998489 23751 80.91.229.12 (2 Nov 2007 10:14:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2007 10:14:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 11:14:52 2007 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 1IntYA-0003TN-K3 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 11:14:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IntY0-0006xm-7r for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 06:14:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IntXV-0006vw-8l for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 06:14:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IntXP-0006qY-Mj for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 06:14:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IntXP-0006q7-Dn for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 06:14:03 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IntXP-0005Of-4n for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 06:14:03 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 19so979996fkr for ; Fri, 02 Nov 2007 03:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=N2yB9TohyX2WCJhOhv376dcMkIG5HRx5z66jkok/B00=; b=lVfnZVX9Mc9vIPtlRA2hGOHYz8VwMg+QoigE0tuGwn5hRvBfL0AOv0SsEqU33X4Fk72+hAOIgVX6XTc5RUyrtaPYWh+jvMeUxJRdMufoWICm5n9vJf/Tdzrgqe0qQjWNaYLjDyRGH7fiqhn9rxFTcjjiCWOcXebiwVOBAbkcVDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=iQw8xPgA+51hG41OW1GQ3VdP+yWcMcHC3vItupNY6EFoD6uju2WQiu99bO0GReL0DvkJoQ83oFdb9jf3hHnCzk1oB13aPLhRTQBaPzSWNka5GwT6YKt28QSYg5lgNgmKc+EniEBRAXI5V9aHC7LD+CPpKGEq9O026tWbn/YIFL8= Original-Received: by 10.82.187.16 with SMTP id k16mr2628992buf.1193998441414; Fri, 02 Nov 2007 03:14:01 -0700 (PDT) Original-Received: from bzg.ath.cx ( [78.113.180.159]) by mx.google.com with ESMTPS id j9sm6363034mue.2007.11.02.03.13.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Nov 2007 03:13:57 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 063A11575BA; Fri, 2 Nov 2007 11:13:52 +0000 (GMT) In-Reply-To: <472A7D59.7050207@gmail.com> (Magicloud Magiclouds's message of "Fri, 02 Nov 2007 09:28:57 +0800") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:48978 Archived-At: Magicloud Magiclouds writes: > Now emacs provides outline and hs modes for folding, I think. But > they both need some "text hint" to do the hide/show. May I do the > hide/show by line number? Like "M-x hs-hide-ln 10, 20". I can't speak for hs, which I don't know. But for outline-mode, folding is done along the *structure* of the document. So it doesn't make sense to fold according to a range of lines. Actually, I think this would be quite confusing... How would you know what lines are folded ? -- Bastien