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

2011-08-16 Thread Bastien
Hi Matt, Matt Lundin m...@imapmail.org writes: On further investigation, I can see very easily how much this cleans up the code. Sorry for the noise! No problem! Perhaps for the relevant functions (e.g., org-overview) we could construct org-outline-regexp-bol from the a bound version of

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

2011-08-13 Thread Matt Lundin
Hi Bastien, Bastien b...@altern.org writes: Attached is a patch that replaces instances of outline-regexp by org-outline-regexp. It also introduces more harmonization. I'd be interesed in hearing about feedback. What is the primary reason to use a hard-coded org-outline-regexp and

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

2011-08-13 Thread Matt Lundin
Matt Lundin m...@imapmail.org writes: Bastien b...@altern.org writes: Attached is a patch that replaces instances of outline-regexp by org-outline-regexp. It also introduces more harmonization. I'd be interesed in hearing about feedback. What is the primary reason to use a hard-coded

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

2011-07-25 Thread Bastien
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com writes: This confirms my intuition that the * should be hardcoded. One argument against hardcoding would be that you can use org-cycle in other modes, with outline-minor-mode, and I think a number of people make use of this. Yes, I

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

2011-07-18 Thread Bastien
Hi Achim, Achim Gratz strom...@nexgo.de writes: Looks good, except that Git complains about two whitespace errors — but that is easily taken care of by M-x delete-trailing-whitespace. Thanks for confirming -- I've now applied the patch. There is still some work to be done to completely

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

2011-07-18 Thread Carsten Dominik
On 16.7.2011, at 12:31, Bastien wrote: Hi Carsten, Carsten Dominik carsten.domi...@gmail.com writes: 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

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

2011-07-17 Thread Achim Gratz
Bastien b...@altern.org writes: Attached is a patch that replaces instances of outline-regexp by org-outline-regexp. It also introduces more harmonization. So that's what you were doing all sunday... ;-) I'd be interesed in hearing about feedback. Looks good, except that Git complains

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

2011-07-17 Thread Aankhen
Hi, On Sat, Jul 16, 2011 at 18:29, Pieter Praet pie...@praet.org wrote: On Fri, 15 Jul 2011 12:21:01 +0200, Philipp Haselwarter philipp.haselwar...@gmx.de wrote: No need to go all flaming because someone thinks the looks of the software matter. TBH I don't see what's wrong with that or in

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

2011-07-17 Thread Christian Moe
On 7/17/11 10:08 AM, Aankhen wrote (in response to Pieter Prat): What the OP is suggesting effectively nullifies the separation between model and view in that it would allow changing Org-mode's outlining markup at its very core, potentially leading to a wildgrowth of custom markup formats

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

2011-07-17 Thread Marcus Klemm
Pieter Praet pieter at praet.org writes: What the OP is suggesting effectively nullifies the separation between model and view ... I'm sorry, but this is just plain wrong. The whole problem is that in orgmode there is no real separation between model and view. Any normal interactive

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

2011-07-17 Thread Bastien
Attached is a patch that replaces instances of outline-regexp by org-outline-regexp. It also introduces more harmonization. I'd be interesed in hearing about feedback. Thanks! From 942c0ffbc04cef5a8158c274397b51284d944c43 Mon Sep 17 00:00:00 2001 From: Bastien Guerry b...@altern.org Date:

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

2011-07-16 Thread harven
Carsten Dominik carsten.dominik at gmail.com writes: BTW, this discussion has happened in the mailing list before several times - a FAQ entry might indeed be appropriate. - Carsten Let me apologize for having started the thread then. Sincerely, -- Harven

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

2011-07-16 Thread Bastien
Hi Harven, harven har...@free.fr writes: I am assuming that the org files all start with a org- prefix. Am I right ? There are also ob-* files in recent version of Org. I did a quick check and could not find references to outline-regexp or org-outline-regexp in those files, but maybe ^\\*

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

2011-07-16 Thread Bastien
Hi Achim, Achim Gratz strom...@nexgo.de writes: I don't know if having a regexp a compile-time constant is advantageous in terms of performance. I think it is. In any case it would be quite some effort to clean up all regexp to only use symbols. Harven's question convinced me to

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

2011-07-16 Thread Bastien
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com writes: 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

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

2011-07-16 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: I do not disagree. :) My point is that it could be hard-coded in a consistent way, i.e. all references to an headline could look for `org-outline-regexp' instead of some custom string (even though it may be shorter and easier to

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

2011-07-16 Thread Bastien
Hi Harven, harven har...@free.fr writes: Let me apologize for having started the thread then. Well, no one hurt! It's sometimes a good things to try to rephrase old problems. In this case it led me to have another perspective about this issue, so thank *you* for starting it. -- Bastien

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

2011-07-16 Thread Pieter Praet
On Fri, 15 Jul 2011 12:21:01 +0200, Philipp Haselwarter philipp.haselwar...@gmx.de wrote: No need to go all flaming because someone thinks the looks of the software matter. TBH I don't see what's wrong with that or in what way that's the opposite of efficiency. What I considered wrong about

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

2011-07-15 Thread Philipp Haselwarter
No need to go all flaming because someone thinks the looks of the software matter. TBH I don't see what's wrong with that or in what way that's the opposite of efficiency. Abstracting the user interface from the logic is an important paradigm, especially for something like org-mode that you want

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

2011-07-15 Thread Bastien
Hi Harven, I understand your point -- yes, from a purely theoretical point of view, we should be able to use another character than * to match headlines, because org-mode is derived from outline-mode. If you can go through Org's code (or motivate someone to go thru the code for you) and check

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

2011-07-15 Thread Jambunathan K
Philipp Haselwarter philipp.haselwar...@gmx.de writes: No need to go all flaming +1 Let's keep out hearts warm and our love of Orgmode mild. Let's not warm our hearts so much that it starts an hell fire and burn our souls to ashes. I hold all 3 parties not entirely above reproach. Just my 2

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

2011-07-15 Thread Nicolas Goaziou
Hello, Philipp Haselwarter philipp.haselwar...@gmx.de writes: Is there any particular reason for it to be hardcoded? Apart from the fact that /well it just is this way right now/ I mean. I don't know the truth here, but I'd guess it is about keeping Org structure in ASCII. Org is about

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

2011-07-15 Thread Bastien
Hi Philipp, Philipp Haselwarter philipp.haselwar...@gmx.de writes: Is there any particular reason for it to be hardcoded? Apart from the fact that /well it just is this way right now/ I mean. Nothing carved in stone, but here are the two reasons I see: - we don't want users to use arbitrary

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

2011-07-15 Thread Bastien
har...@free.fr writes: Starting with emacs -Q (this is emacs 23.2 together with org-mode 6.33), This version of Org is quite old -- for bug reports, we encourage people to check against the latest version. execute in the scratch buffer (setq outline-regexp [•\f]+) so as to use a bullet as

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

2011-07-15 Thread Memnon Anon
Hi all, Pieter Praet pie...@praet.org writes: On Thu, 14 Jul 2011 19:32:18 +0200 (CEST), har...@free.fr wrote: Please don't *insult* our devs by calling this useless BS a BUG, let alone ask them to *waste* their precious time and skills on it. Mhh, I don't think it was in any way insulting

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

2011-07-15 Thread Memnon Anon
Hi all, I think this is a very reasonable and concise mail on the star topic Nicolas wrote here. If Bastien agrees to its assessment, I would suggest adding a link to it to the FAQ item on the topic. Memnon

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

2011-07-15 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: I think some parts of Org code use `outline-regexp', some others use `org-outline-regexp' and some parts have it hard-coded. For the sake of consistency, It would certainly be a good idea to generalize the use of `org-outline-regexp'.

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

2011-07-15 Thread Bastien
Hi Memnon, Memnon Anon gegendosenflei...@googlemail.com writes: If Bastien agrees to its assessment, I would suggest adding a link to it to the FAQ item on the topic. Please do. No matter if I 100% agree with its assessment or not, as long as it is informative -- and it is informative :)

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

2011-07-15 Thread Nicolas Goaziou
Hello, Bastien b...@altern.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: I think some parts of Org code use `outline-regexp', some others use `org-outline-regexp' and some parts have it hard-coded. For the sake of consistency, It would certainly be a good idea to generalize the

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

2011-07-15 Thread Achim Gratz
Bastien b...@altern.org 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.

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

2011-07-15 Thread harven
Achim Gratz Stromeko at nexgo.de writes: Bastien bzg at altern.org 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

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

2011-07-15 Thread harven
harven harven at free.fr writes: Achim Gratz Stromeko at nexgo.de writes: Bastien bzg at altern.org 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

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

2011-07-15 Thread Carsten Dominik
On 14.7.2011, at 20:01, Nick Dokos wrote: har...@free.fr wrote: b...@altern.org writes: har...@free.fr writes: (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 -- second

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

2011-07-14 Thread harven
- Mail Original - De: Bastien b...@altern.org À: Darlan Cavalcante Moreira darc...@gmail.com Cc: harven har...@free.fr, emacs-orgmode@gnu.org Envoyé: Samedi 2 Juillet 2011 11h48:52 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [O] how to change

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

2011-07-14 Thread Bastien
har...@free.fr writes: (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 -- second heading some stuff here Activate org-mode. M-x org-mode. You should not do this. org-mode lists

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

2011-07-14 Thread harven
b...@altern.org writes: har...@free.fr writes: (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 -- second heading some stuff here Activate org-mode. M-x org-mode.

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

2011-07-14 Thread Nick Dokos
har...@free.fr wrote: b...@altern.org writes: har...@free.fr writes: (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 -- second heading some stuff here

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

2011-07-14 Thread Pieter Praet
On Thu, 14 Jul 2011 19:32:18 +0200 (CEST), har...@free.fr wrote: b...@altern.org writes: har...@free.fr writes: (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 --

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

2011-07-14 Thread Philipp Haselwarter
Bastien b...@altern.org writes: har...@free.fr writes: (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 -- second heading some stuff here Activate org-mode. M-x org-mode. You

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

2011-07-02 Thread Bastien
Hi Darlan, Darlan Cavalcante Moreira darc...@gmail.com 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

[O] how to change the headline starter *

2011-06-13 Thread harven
Hi, is it possible to change the headline starter, for example from * to - ? thanks, -- Harven

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

2011-06-13 Thread Darlan Cavalcante Moreira
I don't think this is possible. The * as a headline starter seems to be hard-coded in org. Also, - is used as a list starter (as well as other starters such as +). -- Darlan Cavalcante At Sat, 11 Jun 2011 20:58:39 +0200, harven har...@free.fr wrote: Hi, is it possible to change the