Re: [O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-13 Thread Nicolas Goaziou
Hello, Ondřej Grover ondrej.gro...@gmail.com writes: Thanks for the patch. Some comments follow. export becomes part of the noexport heading. * h0 ** h1 :noexport: no export ** h2 :ignore_heading: export I have no idea how to get around this.

Re: [O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-13 Thread Ondřej Grover
Hi Rasmus, Thanks. Your snippet doesn't work on these two examples. Can't promote from level 1: * h1 :noexport: no export * h2 :ignore_heading: export I've added a simple (when ( (outline-level) 1) (org-promote)) safety check to make sure indentation does not fail

Re: [O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-13 Thread Rasmus
Ondřej Grover ondrej.gro...@gmail.com writes: I have no idea how to get around this. It stems from the basic problem in Org mode that there are no entry closures AFAIK: To export the export it would have to be under a heading that does not have the :noexport: tag. This is actually one of the

Re: [O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-13 Thread Suvayu Ali
Hi, I would like to chime in here. On Mon, Apr 13, 2015 at 09:42:58PM +0200, Nicolas Goaziou wrote: Please keep in mind this is an example to illustrate `org-export-before-parsing-hook', not really a place to document some hack. Is it a good idea to promote org-export-before-parsing-hook

Re: [O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-13 Thread Rasmus
Hi Ondřej, Ondřej Grover ondrej.gro...@gmail.com writes: I've revised my patch to accommodate your suggestions and attached the new version. Now it excludes noexport tagged headlines from removal and promotes child headlines. Thanks. Your snippet doesn't work on these two examples. Can't

Re: [O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-13 Thread Ondřej Grover
Hi Rasmus, I wasn't aware of this functionality being added to ox-extra, thank you for pointing it out. I've revised my patch to accommodate your suggestions and attached the new version. Now it excludes noexport tagged headlines from removal and promotes child headlines. Using properties for

[O] [PATCH]Extend export hook example for removing headlines with tag ignore_heading

2015-04-12 Thread Ondřej Grover
Hello, I've attached a patch for the Advanced configuration (for exporting) chapter of the Org mode manual that extends the hook example there to provide the commonly requested ignoreheading-like functionality found in the Beamer backend. The example is very simple and adds just one line of code