Hi James,

On Thu, Jul 25, 2013 at 05:42:00PM -0400, James Harkins wrote:
> Hi, I found an inventive solution by Suvayu to discard headlines from export 
> here [1], but the 8.0+ solution throws an error in my environment.
> 
> (defun sa-ignore-headline (contents backend info)

 [...chomp...chomp...chomp...]

>                 (downcase headline)))
>     (replace-match "" nil nil headline)))
> 
> (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline)
> 
> --> string-match: Symbol's value as variable is void: headline
> 
> It seems it should actually be:
> 
> (defun sa-ignore-headline (contents backend info)

 [...chomp...chomp...chomp...]

>                 (downcase contents)))
>     (replace-match "" nil nil contents)))
> 
> (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline)

Oops, typo!  Also a correction, I had a solution for the old exporter.
If I recall correctly Nick Dokos helped me come up with it.  The 8.0<
solution was from Rasmus based on suggestions from Nicolas.

I'll update the answer on SO.

Thanks for checking it,

-- 
Suvayu

Open source is the future. It sets us free.

Reply via email to