From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer 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 Message-ID: <87zi8f2jni.fsf@kyleam.com> References: <87a80fnon9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7PyK-0006FI-NL for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 14:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7PyF-0006pk-S0 for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 14:00:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53183) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7PyF-0006pA-Mw for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 14:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7PyE-0000UZ-Od for emacs-orgmode@gnu.org; Wed, 25 Oct 2017 14:00:02 -0400 In-Reply-To: <87a80fnon9.fsf@gmail.com> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Michel Damiens Cc: 28999@debbugs.gnu.org Michel Damiens 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