From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dr Stephen J Eglen Subject: Re: orgstruct-mode with custom headline prefix Date: Tue, 19 Feb 2013 10:18:34 +0000 (UTC) Message-ID: References: <87vcah6xf5@ch.ristopher.com> <8738xh4xfr@ch.ristopher.com> <87y5f994ni.fsf@bzg.ath.cx> <87pq0l3gr2@ch.ristopher.com> <878v79925v.fsf@bzg.ath.cx> <87k3qt3exu@ch.ristopher.com> <87a9rplhue.fsf@bzg.ath.cx> <87622d5d8e@ch.ristopher.com> <87r4koasra@ch.ristopher.com> <8738x1cq0x.fsf@Rainer.invalid> <874nhhuun6@ch.ristopher.com> <87obfomvdq@ch.ristopher.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7kHr-0008Ob-SU for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 05:19:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7kHl-0002uz-Av for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 05:18:59 -0500 Received: from plane.gmane.org ([80.91.229.3]:49474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7kHl-0002uj-4b for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 05:18:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U7kI2-0004ye-4P for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 11:19:10 +0100 Received: from lapserv.damtp.cam.ac.uk ([131.111.16.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Feb 2013 11:19:10 +0100 Received: from sje30 by lapserv.damtp.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Feb 2013 11:19:10 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Christopher Schmidt ch.ristopher.com> writes: > > Christopher Schmidt ch.ristopher.com> writes: > > I will push a fix ASAP. > > I did that now. > > d6f69f5 org.el: Use let instead of progv in org-run-like-in-org-mode > ea2d107 org.el: Declare orgstruct-mode > > Christopher > > hi Christopher, I'm trying to add support for orgstruct-mode to R buffers (via ESS). I think I'm nearly there, with the following magic at the end of my buffers: ### Local Variables: ### eval: (orgstruct-mode 1) ### outline-regexp: "### " ### orgstruct-heading-prefix-regexp: "### " ### End: so that lines such as: ### * section heading become section headings. This is really neat, thanks for your work. I just wanted to check though whether we need to set outline-regexp; I think this part of `org-cycle' requires outline-regexp to be set, but I just wanted to check whether this was a pre-requisite, as it then seems that we are setting two similar regexps. Not a big deal, but just wanted to check. Most major modes (emacs-lisp, python, perl) that I checked already set outline-regexp, whereas we currently don't set it in ESS. (if (not (derived-mode-p 'org-mode)) outline-regexp Thanks, Stephen