From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: orgstruct minor mode Date: Sat, 25 Jul 2009 20:21:35 -0400 Message-ID: <87vdlgi99s.fsf@stats.ox.ac.uk> References: <878wiiriuz.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> <87zlaylr33.fsf@stats.ox.ac.uk> <20524da70907251651o7ace016do41fbbdb84486dbd3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUrUo-00004y-UE for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 20:21:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUrUk-0008Ti-DQ for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 20:21:46 -0400 Received: from [199.232.76.173] (port=39160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUrUk-0008Tf-6L for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 20:21:42 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:33818) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MUrUj-00057V-MY for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 20:21:41 -0400 In-Reply-To: <20524da70907251651o7ace016do41fbbdb84486dbd3@mail.gmail.com> (Samuel Wales's message of "Sat, 25 Jul 2009 16:51:05 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: maurizio.vitale@polymath-solutions.com, emacs-orgmode@gnu.org > Maurizio Vitale > writes: > Is anybody working on making orgstruct work with programming modes (or > other modes that require the org "markup" to be hidden in comments)? Samuel Wales writes: >> It might be nice to have these solutions in one place. Yes, an overview/tutorial of the various options would be good to have. >> >> I know of hideshow, hideshow-org, the email thread, >> outline-minor-mode plus regexp fixes, orgstruct, orgstruct++, >> orgtbl, and org-babel so far. [One obvious point for the record -- embedding code in org files is not a mutually exclusive alternative to the others: after C-c ' the code is edited in a language major mode buffer in which the other solutions might be used for folding / structuring] I'll add Carsten's outline-magic.el to that list. http://staff.science.uva.nl/~dominik/Tools/outline-magic.el Personally I've been using plain outline-minor-mode for code folding. I haven't used outline-magic, but it seems like perhaps I should. Is anyone out there currently using it? Dan >> >> I guess there are several categories. This is very rough. >> >> 1) code folding (e.g. hiding the contents of a defun) >> 2) as much of org as possible without changing the >> behavior of the mode itself too much. plain lists and >> headlines can go inside comments or docstrings. >> 3) literate programming. compile in two steps: >> compile from org and compile to binary. >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode