From: Julien Cubizolles <j.cubizolles@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: :completion function isn't run anymore?
Date: Fri, 27 Nov 2015 16:49:25 +0100 [thread overview]
Message-ID: <87y4djbg8c.fsf@free.fr> (raw)
In-Reply-To: 87ziy0xt58.fsf@free.fr
Julien Cubizolles <j.cubizolles@free.fr> 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.
next prev parent reply other threads:[~2015-11-27 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 23:01 :completion function isn't run anymore? Julien Cubizolles
2015-11-27 15:49 ` Julien Cubizolles [this message]
2015-11-29 13:20 ` Nicolas Goaziou
2015-11-29 20:38 ` Julien Cubizolles
2015-11-29 20:53 ` Nicolas Goaziou
2015-11-29 21:19 ` Julien Cubizolles
2015-11-29 21:39 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4djbg8c.fsf@free.fr \
--to=j.cubizolles@free.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).