From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: emacs allout-mode Date: Tue, 29 Sep 2009 11:24:15 +0200 Message-ID: <4AC1D23F.1000900@easy-emacs.de> References: <25639808.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1254216585 19387 80.91.229.12 (29 Sep 2009 09:29:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 09:29:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: stucker Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 29 11:29:38 2009 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 1MsZ1d-0001d0-Uh for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 11:29:38 +0200 Original-Received: from localhost ([127.0.0.1]:45793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsZ1d-00036q-F0 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 05:29:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsYxg-00011E-HP for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 05:25:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsYxb-0000vO-BK for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 05:25:31 -0400 Original-Received: from [199.232.76.173] (port=50516 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsYxa-0000v8-PM for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 05:25:26 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:53104) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsYxa-0004Ma-73 for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 05:25:26 -0400 Original-Received: from [192.168.178.27] (p54BE8A79.dip0.t-ipconnect.de [84.190.138.121]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MHri9-1MvbMl1htN-0049LC; Tue, 29 Sep 2009 11:25:22 +0200 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) In-Reply-To: <25639808.post@talk.nabble.com> X-Provags-ID: V01U2FsdGVkX18xJd4MvpbZd/jOLNf4prelqWt3b1lA/lFEAZK R0EkyyexpDlFZi3Fo0Rru0zaMnUvxFnhGU13TxK517Y5MlkyIm pYns2S7W8albDX5BmfvOEEKW5Pvtac8 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:68523 Archived-At: stucker wrote: > Hi, > I am wondering if anyone might share with me the secrets of allout.el. I am > interested in adapting this for my programming in R through ESS. I have read > through comments in the source code and the docstring but there are some > things that are still a bit confusing... > > So from examining allout.el my understanding is that I want to mark up my > document in the following style (# is the comment char in R): > > ###_* heading 1 > ###_ = heading 2 > ...code... > ###_ > another type of heading 2 > ...code... > > with stylish-prefixes set to true, the set of distinctive bullets > "*+-=>()[{}&!?#%\"X@$~_\\:;^" can be used as different subtopic bullets. > > However: > 1. This works when I do allout-hide-bodies, but when I add (setq > allout-layout t) to the mode-hook and open an R file, some of the topics and > subtopics are hidden. > 2. In allout.el: > "comment-start strings that do not end in spaces are tripled in > the header-prefix, and an `_' underscore is tacked on the end, to > distinguish them from regular comment strings. comment-start > strings that do end in spaces are not tripled, but an underscore > is substituted for the space." > -> Is there something I do that will automatically convert my comments into > allout-style headings and sub-headings? > > The main advantage I see for allout over outline is the easy keyboard > navigation (for my purposes, since I do not require encryption)... but is > there more? Is there also an allout export document that can be generated? > There is some comment in 'allout.el' which says: > "Easy rendering of exposed portions into numbered, latex, indented, etc > outline styles" leads me to believe so... > > I was wondering if anyone could possibly confirm this and perhaps share some > ways in which they use allout mode (if at all, or do you use outline mode > code)? I already use folding-mode already to hide parts of interactive > scripts that I don't currently use, but don't want to delete... but was > looking for another folding mode that will structure my scripts. > > Thank you! > > Stephen > Hi, AFAIU if you have already a structured text, whose hierarchies you may adress, simply outline-mode or hs-minor-mode should be the suitable tools. Feel free to post some example code, should you not come to a result. Andreas -- https://code.launchpad.net/s-x-emacs-werkstatt/ http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/