From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: org-publish-after-publishing-hook
Date: Mon, 05 Sep 2016 13:28:33 +0200 [thread overview]
Message-ID: <87y43637ry.fsf@luisa.c0t0d0s0.de> (raw)
Hello,
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:
("web-static"
: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:
("bbdbv3"
: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?
Regards
hmw
next reply other threads:[~2016-09-05 11:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-05 11:28 Michael Welle [this message]
2016-09-05 12:51 ` org-publish-after-publishing-hook Michael Welle
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y43637ry.fsf@luisa.c0t0d0s0.de \
--to=mwe012008@gmx.net \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.