From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: :completion function isn't run anymore? Date: Fri, 27 Nov 2015 16:49:25 +0100 Message-ID: <87y4djbg8c.fsf@free.fr> References: <87ziy0xt58.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2LKJ-0000e0-SI for emacs-orgmode@gnu.org; Fri, 27 Nov 2015 10:52:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2LKG-0008QL-I2 for emacs-orgmode@gnu.org; Fri, 27 Nov 2015 10:52:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:34829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2LKG-0008Q9-Bb for emacs-orgmode@gnu.org; Fri, 27 Nov 2015 10:52:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a2LIN-0003FK-6g for emacs-orgmode@gnu.org; Fri, 27 Nov 2015 16:50:47 +0100 Received: from 193.50.249.225 ([193.50.249.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Nov 2015 16:50:47 +0100 Received: from j.cubizolles by 193.50.249.225 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Nov 2015 16:50:47 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Julien Cubizolles 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.