emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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

       reply	other threads:[~2017-10-25 18:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87a80fnon9.fsf@gmail.com>
2017-10-25 17:59 ` Kyle Meyer [this message]
2017-12-03 16:18   ` bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions 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://www.orgmode.org/

* 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 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).