From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: PATCH: Support `org-export-process-option-filters' in latex export Date: Fri, 21 Jan 2011 14:58:04 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=45959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgIRd-0007ZT-M5 for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 09:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgIRc-0007mc-LI for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 09:58:33 -0500 Received: from lo.gmane.org ([80.91.229.12]:41995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgIRc-0007mE-BE for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 09:58:32 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PgIRX-0001rc-Jk for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 15:58:27 +0100 Received: from 94.197.132.141.threembb.co.uk ([94.197.132.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 15:58:27 +0100 Received: from dandavison7 by 94.197.132.141.threembb.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 15:58:27 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org `org-export-process-option-filters' is supported for HTML export but not for latex export. The patch at the bottom fixes that. I note that there is one other location in the same function where it seems the same change could be made. I suspect this is not necessary, but if someone is familiar with the org-latex code they might like to have a look. (I didn't manage to understand the roles of the several variables with names like *-opt-plist *-options-plist in that function.) I'm protecting this patch from patchwork with ^$; it's the patch at the bottom that I propose. $ diff --git a/lisp/org-latex.el b/lisp/org-latex.el $ index 51ee6d2..53d6b40 100644 $ --- a/lisp/org-latex.el $ +++ b/lisp/org-latex.el $ @@ -700,7 +700,8 @@ when PUB-DIR is set, use this as the publishing directory." $ '(:org-license-to-kill nil)))) $ (org-update-radio-target-regexp) $ (org-export-latex-set-initial-vars ext-plist arg) $ - (setq org-export-opt-plist org-export-latex-options-plist) $ + (setq org-export-opt-plist $ + (org-export-process-option-filters org-export-latex-options-plist)) $ (org-install-letbind) $ (run-hooks 'org-export-latex-after-initial-vars-hook) $ (let* ((wcf (current-window-configuration)) $ Support `org-export-process-option-filters' in latex export * lisp/org-latex.el (org-export-as-latex): Process export property list with `org-export-process-option-filters' early in latex export Modified lisp/org-latex.el diff --git a/lisp/org-latex.el b/lisp/org-latex.el index ecaf1c0..51ee6d2 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -704,7 +704,8 @@ when PUB-DIR is set, use this as the publishing directory." (org-install-letbind) (run-hooks 'org-export-latex-after-initial-vars-hook) (let* ((wcf (current-window-configuration)) - (opt-plist org-export-latex-options-plist) + (opt-plist + (org-export-process-option-filters org-export-latex-options-plist)) (region-p (org-region-active-p)) (rbeg (and region-p (region-beginning))) (rend (and region-p (region-end)))