emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: "ignoreheading" for non-beamer export
Date: Fri, 26 Jul 2013 13:41:06 +0200	[thread overview]
Message-ID: <20130726114106.GD16304@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <87mwpa2u6v.wl%jamshark70@dewdrop-world.net>

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	other threads:[~2013-07-26 11:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25 21:42 "ignoreheading" for non-beamer export James Harkins
2013-07-26 11:41 ` Suvayu Ali [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130726114106.GD16304@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).