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: Julien Cubizolles
Subject: Re: [O] :completion function isn't run anymore?
Date: Fri, 27 Nov 2015 16:49:25 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

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

--8<---------------cut here---------------start------------->8---

#+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
--8<---------------cut here---------------end--------------->8---

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.

However, with emacs -Q (and the version of org-mode shipped with it), I
recover the expected behaviour.

With  emacs -Q -l ~/test.el, the problem reoccurs

~/test.el

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/info/emacs/org-mode/lisp")
(add-to-list 'load-path "~/info/emacs/org-mode/contrib/lisp")
--8<---------------cut here---------------end--------------->8---

~/info/emacs/org-mode/ is my git repo of org-mode.

 I'm running GNU Emacs 25.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.14.13) of 
2015-10-21

Julien.




reply via email to

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