From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Arbitrary folding in emacs Date: Fri, 28 Mar 2014 18:32:47 -0400 Message-ID: References: <834n2iy9dz.fsf@gnu.org> <83ob0qslyi.fsf@gnu.org> <87bnwqa4qt.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396045999 18288 80.91.229.3 (28 Mar 2014 22:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 22:33:19 +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 Mar 28 23:33:28 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTfL5-0001T5-Bn for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 23:33:27 +0100 Original-Received: from localhost ([::1]:36201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTfL4-0002pL-Q6 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 18:33:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTfKn-0002pD-7f for help-gnu-emacs@gnu.org; Fri, 28 Mar 2014 18:33:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTfKf-0005lD-Ok for help-gnu-emacs@gnu.org; Fri, 28 Mar 2014 18:33:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTfKf-0005kz-Iz for help-gnu-emacs@gnu.org; Fri, 28 Mar 2014 18:33:01 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WTfKd-0001By-Nk for help-gnu-emacs@gnu.org; Fri, 28 Mar 2014 23:32:59 +0100 Original-Received: from 192-171-35-19.cpe.pppoe.ca ([192.171.35.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Mar 2014 23:32:59 +0100 Original-Received: from monnier by 192-171-35-19.cpe.pppoe.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Mar 2014 23:32:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 192-171-35-19.cpe.pppoe.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:0zBzqaWLT+Z5c4y9VojTh0b+4Og= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96825 Archived-At: > outline.el has outline-flag-region, but > (i) it doens't use an ellipsis and It does if you enable outline-minor-mode first. > (ii) it is not interactive. Indeed, tho you can work around that with (defun my-hide-region (beg en) (interactive "r") (outline-flag-region beg end t)) But obviously, it'll be a bit crude (e.g. no commands to unhide, tho you might be able to use reveal-mode for that). > I think it doesn't exist because it requires to mark a portion of the > buffer, whereas Emacs has capabilities to be smarter than that (via > hideshow or outline and some others yet), That wouldn't preclude us from providing the "more manual" functionality. Stefan