emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* PATCH: Support `org-export-process-option-filters' in latex export
@ 2011-01-21 14:58 Dan Davison
  2011-01-26 18:01 ` [Accepted] " Bastien Guerry
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Davison @ 2011-01-21 14:58 UTC (permalink / raw)
  To: emacs-orgmode

`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)))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Accepted] PATCH: Support `org-export-process-option-filters' in latex export
  2011-01-21 14:58 PATCH: Support `org-export-process-option-filters' in latex export Dan Davison
@ 2011-01-26 18:01 ` Bastien Guerry
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien Guerry @ 2011-01-26 18:01 UTC (permalink / raw)
  To: emacs-orgmode

Patch 554 (http://patchwork.newartisans.com/patch/554/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Cm14o92l2wz.fsf%4094.197.132.141.threembb.co.uk%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] PATCH: Support `org-export-process-option-filters' in latex
> 	export
> Date: Fri, 21 Jan 2011 19:58:04 -0000
> From: Dan Davison <dandavison7@gmail.com>
> X-Patchwork-Id: 554
> Message-Id: <m14o92l2wz.fsf@94.197.132.141.threembb.co.uk>
> 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)))
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-26 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21 14:58 PATCH: Support `org-export-process-option-filters' in latex export Dan Davison
2011-01-26 18:01 ` [Accepted] " Bastien Guerry

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