* bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions
[not found] <87a80fnon9.fsf@gmail.com>
@ 2017-10-25 17:59 ` Kyle Meyer
2017-12-03 16:18 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Kyle Meyer @ 2017-10-25 17:59 UTC (permalink / raw)
To: Michel Damiens; +Cc: 28999
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions
2017-10-25 17:59 ` bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions Kyle Meyer
@ 2017-12-03 16:18 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-12-03 16:18 UTC (permalink / raw)
To: Kyle Meyer; +Cc: 28999-close, Michel Damiens
Hello,
Kyle Meyer <kyle@kyleam.com> writes:
> 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?)
I agree. This looks like a user error.
I'm closing this bug report.
Michel, do not hesitate to open a new one if you think the issue is
still there. Thank you!
Regards,
--
Nicolas Goaziou 0x80A93738
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-03 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87a80fnon9.fsf@gmail.com>
2017-10-25 17:59 ` bug#28999: 25.3.50; org export : exclude-tags not working with org-export-filter-options-functions Kyle Meyer
2017-12-03 16:18 ` Nicolas Goaziou
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).