Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-26 Thread Marcin Borkowski
Dnia 2013-09-25, o godz. 12:53:18 Thorsten Jolitz tjol...@gmail.com napisaƂ(a): One possible remaining option would be to introduce user variables org-BACKEND-format-property-drawer-function in analogy org-BACKEND-format-drawer-function. This would provide an easy way to configure export

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-26 Thread Carsten Dominik
Hi, this does look good to me, except that the customize type of org-export-with-properties needs to be extended to allow for the list of strings. Please just go ahead and apply it to master, then I and hopefully others will test it further. - Carsten On 25.9.2013, at 22:57, Nicolas Goaziou

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-26 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@gmail.com writes: this does look good to me, except that the customize type of org-export-with-properties needs to be extended to allow for the list of strings. Please just go ahead and apply it to master, then I and hopefully others will test it

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-26 Thread Carsten Dominik
Excellent, thank you for the fast solution to this issue. Will you also work on exporters in contrib, or should I ping the respective authors to do this? - Carsten On 26.9.2013, at 13:48, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Carsten Dominik carsten.domi...@gmail.com writes:

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-26 Thread Nicolas Goaziou
Carsten Dominik carsten.domi...@gmail.com writes: Will you also work on exporters in contrib, or should I ping the respective authors to do this? This is a grunt job. Also, only ox-confluence and ox-groff have to be updated. I will commit the changes in a little while. Regards, -- Nicolas

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-26 Thread Carsten Dominik
On 26.9.2013, at 16:33, Nicolas Goaziou n.goaz...@gmail.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: Will you also work on exporters in contrib, or should I ping the respective authors to do this? This is a grunt job. Also, only ox-confluence and ox-groff have to be

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Carsten Dominik
OK, now that I have made a fool out of myself, I think I understand now how things work, and what I did not understand correctly in the discussion so far. 1. I misunderstood that drawers could not be exported in general with the new exporter. This is wrong, drawers are exported just fine

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Thorsten Jolitz
Carsten Dominik carsten.domi...@gmail.com writes: 3. The only exception to this rule are property drawers, which will currently not be exported by any of the backends. Nicolas proposed to define a derived backend that does export the property drawer, or he proposed to use macros to

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Carsten Dominik
On 25.9.2013, at 12:53, Thorsten Jolitz tjol...@gmail.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: 3. The only exception to this rule are property drawers, which will currently not be exported by any of the backends. Nicolas proposed to define a derived backend that

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@gmail.com writes: One possible remaining option would be to introduce user variables org-BACKEND-format-property-drawer-function in analogy org-BACKEND-format-drawer-function. This would provide an easy way to configure export of the property drawer as

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Carsten Dominik
On 25.9.2013, at 13:51, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Carsten Dominik carsten.domi...@gmail.com writes: One possible remaining option would be to introduce user variables org-BACKEND-format-property-drawer-function in analogy org-BACKEND-format-drawer-function. This

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Nicolas Goaziou
Carsten Dominik carsten.domi...@gmail.com writes: This sounds good to me. How about allowing also a function as a value and that function will receive the list of properties and do with it as it pleases. At first I thought about it but I realized that was exactly what a filter could do. Do

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Thorsten Jolitz
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, There may be a slightly different option available: we can introduce a new defcustom, e.g., `org-export-with-node-properties' (what symbol to use for short item in OPTIONS?), which will trigger the following behaviour: - when t, export

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Carsten Dominik
On 25.9.2013, at 14:13, Nicolas Goaziou n.goaz...@gmail.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: This sounds good to me. How about allowing also a function as a value and that function will receive the list of properties and do with it as it pleases. At first I

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Christian Moe
- when t, export completely all property drawers as examples; - when nil, do not export property drawers (default value); - when set to a list of strings, export property drawers as examples but only include properties matching these strings; +1 Christian

Re: [O] SUMMARY: [Feature Request] Make property-drawers exportable

2013-09-25 Thread Nicolas Goaziou
Carsten Dominik carsten.domi...@gmail.com writes: Not really. It would simplify processing to have the list instead of a string, but indeed, a filter can accomplish all of it. Here is a first patch. It doesn't handle export back-ends in contrib. Regards, -- Nicolas Goaziou From