From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: how to change the headline starter * Date: Fri, 15 Jul 2011 20:19:05 +0200 Message-ID: <87sjq776g6.fsf@Rainer.invalid> References: <1240511841.2591431310664738370.JavaMail.root@zimbra29-e5.priv.proxad.net> <8762n3strl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhmyz-0003Ur-Jc for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 14:19:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qhmyt-0006jx-9n for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 14:19:24 -0400 Received: from lo.gmane.org ([80.91.229.12]:44995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhmys-0006jr-Qm for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 14:19:19 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qhmyr-00073L-Bq for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 20:19:17 +0200 Received: from p57aab2de.dip.t-dialin.net ([87.170.178.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jul 2011 20:19:17 +0200 Received: from Stromeko by p57aab2de.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jul 2011 20:19:17 +0200 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 Bastien writes: > If you can go through Org's code (or motivate someone to go thru the > code for you) and check where the "*" is hardcoded instead of being > inherited from outline-mode that would help a lot, because I'm busy > with other changes I find more important right now. There's roughly 100 places in Org where "\\*+" is hardcoded (there may be false positives and negatives), four that use org-outline-regexp (a defconst) and 12 that use outline-regexp. Plain outline-regexp is localized to org-outline-regexp on entering orgmode, but I'm not sure why it is used further on (probably for historical reasons). There are quite a few other places where regexp are hardcoded that already have or probably should have defconst or defvar symbols, if it's done for headings one could reasonably expect that it should be done for other things as well. I don't know if having a regexp a compile-time constant is advantageous in terms of performance. In any case it would be quite some effort to clean up all regexp to only use symbols. The other thing is that then of course all the definitions would need to be stored within the org files since I don't see how one could infer them all in the general case from just looking at the file. So it would seem to make more sense to me to keep the org syntax as is and perhaps allow some more visual sugar by adding overlays (for those that don't miond their performance impact). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds