Org-mode mailing list
 help / color / mirror / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Ezequiel Birman <stormwatch@espiga4.com.ar>, emacs-orgmode@gnu.org
Subject: Re: new exporter, conditional options according to backend
Date: Sun, 20 Jan 2013 11:05:06 +0530
Message-ID: <874nic8lit.fsf@gmail.com> (raw)
In-Reply-To: <87sj5w23ia.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 19 Jan 2013 23:48:29 +0100")

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> #+begin_src emacs-lisp
> (defun my-options-change-fun (tree backend info)
>   (when (org-export-derived-backend-p backend 'e-beamer)
>     (plist-put info :with-author nil))
>   ;; Don't forget to return tree.
>   tree)

CAVEAT: plist-put can return a different list, at times.

I don't know enough about implementation of `plist-put' to ascertain
when it would return a new list.

> (add-to-list 'org-export-filter-parse-tree-functions
>              'my-options-change-fun)

-- 

  parent reply	other threads:[~2013-01-20  5:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 15:47 Ezequiel Birman
2013-01-19 22:48 ` Nicolas Goaziou
2013-01-20  4:38   ` Ezequiel Birman
2013-01-20  5:35   ` Jambunathan K [this message]
2013-01-20  9:28     ` Nicolas Goaziou
2013-01-20 16:22       ` Jambunathan K
2013-01-28  7:12         ` Nicolas Goaziou
2013-01-24 20:32   ` Andreas Leha
2013-01-25 13:23     ` Nicolas Goaziou
2013-01-25 17:37   ` cberry
2013-01-25 17:50     ` Nicolas Goaziou

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://orgmode.org

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

  git send-email \
    --in-reply-to=874nic8lit.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=stormwatch@espiga4.com.ar \
    /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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git