Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-07 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: I see that turning a commented line is prevented, while turning several commented lines is allowed. This feels weird. I don't think we should prevent this. What do you think? I don't think there's much point in comparing function's behaviours when

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-07 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Anyway, in this particular case, I guess we could consider comments as a stack of one line elements. I added the feature. Thanks! -- Bastien

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-06 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: I don't think we should prevent users to convert a headline into a fixed-width line. True. I also allowed to turn one-line elements (keywords, clock, planning) into fixed-width areas. Also, better to use the IGNORE-INVISIBLE arg of org-move-to-column

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-06 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: True. I also allowed to turn one-line elements (keywords, clock, planning) into fixed-width areas. I see that turning a commented line is prevented, while turning several commented lines is allowed. This feels weird. I don't think we

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-05 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Here is the function. If it is good enough, I'll add tests and wrap it up in a patch. I don't think we should prevent users to convert a headline into a fixed-width line. Also, better to use the IGNORE-INVISIBLE arg of org-move-to-column IMO.

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-03 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: What happens if the region contains both a fixed-width area and regular lines ? The same than when there is no fixed-width area: we convert the region into fixed-width. Then converting back to a regular area

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-03 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: So, to be clear, assuming the region encompasses everything, : text : text * Headline paragraph paragraph becomes : : text : : text : : * Headline : : paragraph : paragraph and paragraph

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-03 Thread Nicolas Goaziou
Bastien b...@gnu.org writes: No -- sorry. My suggestion is that this region Some text : and some fixed line becomes : Some text : and some fixed line If people want the behavior you describe, then using `C-x r t' will do. Otherwise, they will want the whole region to be

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-03 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Will : and some fixed line Some text also become : and some fixed line : Some text ? Yes, if beg and end of the region are in each of those two lines. And what about headlines, e.g. : and some fixed line * Headline Some

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-03 Thread Nicolas Goaziou
Bastien b...@altern.org writes: The baseline is this: - always consider regions made of whole lines - when all lines are fixed-width in the region, C-c : converts them to regular text - when zero or more (but not all) lines are fixed-width, converts all lines to fixed-width lines,

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-03 Thread Nicolas Goaziou
Nicolas Goaziou n.goaz...@gmail.com writes: It is clearer now, thank you. I'll send a patch later on the ML. Here is the function. If it is good enough, I'll add tests and wrap it up in a patch. #+begin_src emacs-lisp (defun org-toggle-fixed-width () Toggle fixed-width markup. Add or remove

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-02 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Anyway, I removed it because, even if we want to keep it, it needs to be rewritten, using parser and unit tests. It also needs to be renamed. If we don't need C-c : binding, it is possible to re-implement it. Yes, that'd be nice,

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-02 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: Yes, that'd be nice, thanks. Then it would be good to define precise specifications for it. For example, without a region, and not at an example block, it would probably turn the current line into a fixed-width area line. But that doesn't make sense if the

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-02 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: For example, without a region, and not at an example block, it would probably turn the current line into a fixed-width area line. Yes. But that doesn't make sense if the line is in a verbatim area, e.g., an example block. An error

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-02-01 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: I don't think `org-toggle-fixed-width-section' should be deleted entirely, as fixed-width text is still supported in this form: : Some text and using C-c : is very handy. What do you think? I tend to use rectangular regions for that. Anyway, I

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-31 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: I'm for pushing the change to master Done I don't think `org-toggle-fixed-width-section' should be deleted entirely, as fixed-width text is still supported in this form: : Some text and using C-c : is very handy. What do you think?

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-28 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: I'm for pushing the change to master Done Thanks! and documenting this feature in maint as being obsolete. I added a few notes in ORG-NEWS. Feel free to complete them. I will review ORG-NEWS before the next release, thanks. --

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-27 Thread Sebastien Vauban
Nick Dokos wrote: Bastien b...@gnu.org writes: PS: Removing COMMENT would be more problematic, as it is very handy to temporarily prevent a section from being exported or tangled. Doesn't a :noexport: tag do exactly that? (not sure about tangling actually, but that should be not be a big

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-27 Thread Thorsten Jolitz
Sebastien Vauban sva-n...@mygooglest.com writes: Of course, we can wonder whether that particularity of COMMENT couldn't or shouldn't be transported to :noexport: as well (or something extra, such a :donothing:). A :donothing tag or property seems more logical to me than a COMMENT keyword

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-27 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@gmail.com writes: On 26 Jan 2014, at 23:03, Bastien b...@gnu.org wrote: I think removing QUOTE won't hurt that much. I agree. I would also like to see it removed. There seems to be a consensus around it. The last question is: master or maint? It's

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-27 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: There seems to be a consensus around it. The last question is: master or maint? I'm for pushing the change to master and documenting this feature in maint as being obsolete. It's not a bugfix, more like a spring clean, but there's a

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-27 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: I'm for pushing the change to master Done and documenting this feature in maint as being obsolete. I added a few notes in ORG-NEWS. Feel free to complete them. Regards, -- Nicolas Goaziou

[O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Nicolas Goaziou
Hello, Quote sections are special sections triggered when their headline container has the QUOTE keyword in it: * QUOTE Headline This is a quote section. They are inherited (as many other things) from the previous export framework. The behaviour of this keyword in undocumented in Org

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Thomas S. Dye
Aloha Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: At the moment, they are parsed specially by Org Elements, but I think it is a mistake. Like COMMENT keyword in headlines, QUOTE is more an instruction for the export framework. Therefore, they should be parsed as regular sections,

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Rasmus
Nicolas Goaziou n.goaz...@gmail.com writes: Alternatives: - Treat their contents as `quote-blocks' instead of `example-block' - Remove them altogether, since they don't bring anything new. As a side note, if they are here to stay, it would be good to document them. WDYT? I'd be happy

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Nick Dokos
Rasmus ras...@gmx.us writes: Nicolas Goaziou n.goaz...@gmail.com writes: Alternatives: - Treat their contents as `quote-blocks' instead of `example-block' - Remove them altogether, since they don't bring anything new. As a side note, if they are here to stay, it would be good to

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Samuel Wales
My guess is that quote should go. Does anybody use it? I'd strongly want to keep comment, however, if that were questioned. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Bastien
Hi Nicolas, I think removing QUOTE won't hurt that much. PS: Removing COMMENT would be more problematic, as it is very handy to temporarily prevent a section from being exported or tangled. -- Bastien

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Nick Dokos
Bastien b...@gnu.org writes: PS: Removing COMMENT would be more problematic, as it is very handy to temporarily prevent a section from being exported or tangled. Doesn't a :noexport: tag do exactly that? (not sure about tangling actually, but that should be not be a big problem.) Why are two

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Rasmus
Nick Dokos ndo...@gmail.com writes: Bastien b...@gnu.org writes: PS: Removing COMMENT would be more problematic, as it is very handy to temporarily prevent a section from being exported or tangled. Doesn't a :noexport: tag do exactly that? (not sure about tangling actually, but that should

Re: [O] [RFC] Make QUOTE an export keyword instead of an element type

2014-01-26 Thread Carsten Dominik
On 26 Jan 2014, at 23:03, Bastien b...@gnu.org wrote: Hi Nicolas, I think removing QUOTE won't hurt that much. I agree. I would also like to see it removed. PS: Removing COMMENT would be more problematic, as it is very handy to temporarily prevent a section from being exported or