emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] how to change the headline starter *


From: Achim Gratz
Subject: Re: [O] how to change the headline starter *
Date: Fri, 15 Jul 2011 20:19:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Bastien <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]