From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: how to change the headline starter * Date: Sat, 16 Jul 2011 04:05:36 +0200 Message-ID: <616D63EE-FB0A-4A33-8DB2-4A241A4AE45A@gmail.com> References: <1240511841.2591431310664738370.JavaMail.root@zimbra29-e5.priv.proxad.net> <6820.1310666504@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhuGV-0003xD-1Y for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 22:05:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhuGT-0001dL-64 for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 22:05:59 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:46123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhuGS-0001dF-Uv for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 22:05:57 -0400 Received: by fxd18 with SMTP id 18so3076324fxd.39 for ; Fri, 15 Jul 2011 19:05:55 -0700 (PDT) In-Reply-To: <6820.1310666504@alphaville.americas.hpqcorp.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: nicholas.dokos@hp.com Cc: Bastien , emacs-orgmode@gnu.org, harven@free.fr On 14.7.2011, at 20:01, Nick Dokos wrote: > harven@free.fr wrote: >=20 >>=20 >>> bzh@altern.org writes: >>>=20 >>> harven@free.fr writes: >>>=20 >>>> (setq outline-regexp "[-\f]+") >>>> so as to use - as the headline starter character in outline mode. >>>> Switch to another buffer, enter the text >>>>=20 >>>> - first heading >>>> -- second heading >>>> some stuff here >>>>=20 >>>> Activate org-mode. M-x org-mode. >>>=20 >>> You should not do this. org-mode lists start with a "-", using >>> this character for headlines will just confuse things. >>=20 >> Let me rephrase my message then. >>=20 >> BUG. How to reproduce. >> Starting with emacs -Q (this is emacs 23.2 together with org-mode = 6.33), >> execute in the scratch buffer >> (setq outline-regexp "[=95\f]+") >> so as to use a bullet as the headline starter character in outline = mode. >> Switch to another buffer, enter the text >>=20 >> =95 first heading >> =95=95 second heading >> some stuff here >>=20 >> Activate org-mode. M-x org-mode. >>=20 >> Then go to the first heading. TAB folds the text as expected. >> Go to the second heading. TAB inserts a TAB instead of folding >> the second heading. >>=20 >>> Can't you live with the "*" as the headline character? >>=20 >> That's a pretty rude answer, I must say. I don't know a single >=20 > No, it's not. It is as clear an indication as anybody can give you = that > asterisks are pretty much embedded into org structure. >=20 > Patient: "Doctor, it hurts when I do that" > Doctor: "Don't do that" >=20 > You may not like it but that's the way it is. Trying to change it at a > superficial level (as you did by changing outline-regexp) is likely to > land you in a world of pain. Yes. While in principle it might be possible to change the headline character, in practice is would be very difficult, because it is hard-coded not only in regular expressions but also in the structure-editing commands and in many other places. Org-mocde has many syntax elements using many characters, and any modification of the headline character would likely lead to conflicts in other areas. So I do not recommend even trying to change this. Outline-mode is a general mode to do outlining and can change this. Org-mode is a specific file format. BTW, this discussion has happened in the mailing list before several times - a FAQ entry might indeed be appropriate. - Carsten >=20 > Nick >=20 >> language (language as e.g. english, russian, spanish...) that >> uses * as an headline character. BTW, I know that bugs should be >> reported through the bug tracker, I will do that asap, and >> no, I don't have a patch, I don't understand how org-mode >> works. >>=20 >=20