[Top][All Lists]

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

[O] org-publish-after-publishing-hook

From: Michael Welle
Subject: [O] org-publish-after-publishing-hook
Date: Mon, 05 Sep 2016 13:28:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)


I have a hook like follows:

(defun foo (in out)
  (message "o-p-a-p-h in: '%s' out: '%s'" in out))

(add-hook 'org-publish-after-publishing-hook 'foo)

Now I publish a project that is defined in org-publish-project-alist
as follows:

 :base-directory "~/work/ORG/web"
 :publishing-directory "~/public_html/webtest1"
 :base-extension "css\\|gif"
 :recursive t
 :publishing-function org-publish-attachment

The hook triggers and foo is called with two parameters, as expected.

Now a different project:

 :base-directory "~/work/doc/bbdbv3"
 :base-extension "org"
 :publishing-directory "~/public_html/webtest1/bbdbv3"
 :recursive nil
 :publishing-function hmw/org-publish-project
 :headline-levels 4
 :auto-preamble nil
 :auto-sitemap nil
 :html-preamble nil
 :html-postamble nil
 :html-head-include-scripts nil
 :html-head-include-default-style nil
 :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\"/>"

This time foo is called with the out parameter set to nil. That
behaviour changed between April and now I think. Any hints?


reply via email to

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