emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] :completion function isn't run anymore?


From: Nicolas Goaziou
Subject: Re: [O] :completion function isn't run anymore?
Date: Sun, 29 Nov 2015 14:20:21 +0100

Hello,

Julien Cubizolles <address@hidden> writes:

> Julien Cubizolles <address@hidden> writes:
>
>> I noticed that the :preparation-function defined in
>> org-publish-project-alist isn't run anymore when publishing a project.
>
> It seems the preparation-function isn't run either. Consider the
> following more simple examples
>
>
> #+TITLE: Hello
> #+begin_src emacs-lisp :tangle none :exports none
>   (setq org-export-in-background nil)
>   (defun jc-preparation ()
>   "Preparation functions to be run before actually pubishing"
>   (setq org-latex-title-command "")
>   )
>   (setq org-publish-project-alist
>       `(("pdf"
>            :base-directory "./"
>            :publishing-directory "./"
>            :preparation-function jc-preparation
>            :publishing-function org-beamer-publish-to-pdf
>            :exclude ".*"
>            :include ,(list (file-name-nondirectory buffer-file-name))
>            )
>           ))
> #+end_src
>
> #+RESULTS:
> | pdf | :base-directory | ./ | :publishing-directory | ./ | 
> :preparation-function | jc-preparation | :publishing-function | 
> org-beamer-publish-to-pdf | :exclude | .* | :include | (test.org) |
>
> * 1st section
> ** 1st subsection
> ** 2nd subsection
>
> Save the to test.org and publish using the "pdf"
> project. org-beamer-publish-to-pdf creates test.pdf as it should but the
> preparation-function should remove the titlepage wich it doesn't.

I didn't investigate much the issue yet, but, out of curiosity, would
the following patch solve the issue:


Regards,

-- 
Nicolas Goaziou

Attachment: 0001-ox-publish.el-Fix-preparation-function-and-completio.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]