From: Kyle Meyer <kyle@kyleam.com>
To: Michel Damiens <michel.damiens@gmail.com>
Cc: 28999@debbugs.gnu.org
Subject: bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions
Date: Wed, 25 Oct 2017 13:59:29 -0400 [thread overview]
Message-ID: <87zi8f2jni.fsf@kyleam.com> (raw)
In-Reply-To: <87a80fnon9.fsf@gmail.com>
Michel Damiens <michel.damiens@gmail.com> writes:
> Adding :
>
> (defun my-org-export-change-options (plist backend)
> (cond
> ((equal backend 'html)
> (plist-put plist :exclude-tags "NOHTML")
> (plist-put plist :select-tags "HTML"))
> ((equal backend 'latex)
> (plist-put plist :exclude-tags "NOLATEX")
> (plist-put plist :select-tags "LATEX")))
> plist)
>
> (add-to-list 'org-export-filter-options-functions
> 'my-org-export-change-options)
>
> to my init.el file doesn't work : headers with NOHTML tag are exported
> to html, using the export dispatcher (C-c C-e h H)
Shouldn't the values should be a list of strings rather than a single
string? (Is this something that used to work for you?)
Also, I think you should use plist-put's return value rather than
relying on the input being modified.
--
Kyle
next prev parent reply other threads:[~2017-10-25 18:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 17:06 bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions Michel Damiens
2017-10-25 17:59 ` Kyle Meyer [this message]
2017-12-03 16:18 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zi8f2jni.fsf@kyleam.com \
--to=kyle@kyleam.com \
--cc=28999@debbugs.gnu.org \
--cc=michel.damiens@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.