From mboxrd@z Thu Jan 1 00:00:00 1970 From: harven@free.fr Subject: Re: how to change the headline starter * Date: Thu, 14 Jul 2011 15:53:04 +0200 (CEST) Message-ID: <1016444425.2577651310651584384.JavaMail.root@zimbra29-e5.priv.proxad.net> References: <1728286333.2576351310650722865.JavaMail.root@zimbra29-e5.priv.proxad.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhMLx-0004kn-NJ for emacs-orgmode@gnu.org; Thu, 14 Jul 2011 09:53:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhMLq-00080f-4s for emacs-orgmode@gnu.org; Thu, 14 Jul 2011 09:53:21 -0400 Received: from smtp4-g21.free.fr ([212.27.42.4]:33197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhMLp-000802-Bt for emacs-orgmode@gnu.org; Thu, 14 Jul 2011 09:53:14 -0400 In-Reply-To: <1728286333.2576351310650722865.JavaMail.root@zimbra29-e5.priv.proxad.net> 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: Bastien Cc: emacs-orgmode@gnu.org ----- Mail Original ----- De: "Bastien" =C3=80: "Darlan Cavalcante Moreira" Cc: "harven" , emacs-orgmode@gnu.org Envoy=C3=A9: Samedi 2 Juillet 2011 11h48:52 GMT +01:00 Amsterdam / Berlin /= Berne / Rome / Stockholm / Vienne Objet: Re: [O] how to change the headline starter * Hi Darlan, Darlan Cavalcante Moreira writes: > I don't think this is possible. The "*" as a headline starter seems to be > hard-coded in org. I confirm this is not possible, it's hardcoded in outline-mode, and Org is derived from this mode. As this is a FAQ, I added an entry in Worg/org-faq.org Cheers, --=20 Bastien Sorry for the late response. The "*" as a headline character is not hard-co= ded in outline-mode. The headline character can be in fact any regexp, and is specified in the variable outline-regexp defined in outline.el. Its default value is "[*\f]+". It is howewer hard-coded as a "*" e.g. in org-indent.el=20 (e.g. in org-indent-initialize), and a change to outline-regexp breaks org-mode. BUG. How to reproduce.=20 Starting with emacs -Q (this is emacs 23.2 together with org-mode 6.33), execute in the scratch buffer (setq outline-regexp "[-\f]+") so as to use - as the headline starter character in outline mode. Switch to another buffer, enter the text - first heading=20 -- second heading some stuff here Activate org-mode. M-x org-mode. Then go to the first heading. TAB folds the text as expected. Go to the second heading. TAB inserts a TAB instead of folding=20 the second heading. Sincerely, -- Harven