Publishing: Run the after-export-hook

This commit is contained in:
Carsten Dominik 2010-03-04 21:11:08 +01:00
parent 48d4ebeb80
commit 3e7d69d335
1 changed files with 2 additions and 2 deletions

View File

@ -426,8 +426,8 @@ PUB-DIR is the publishing directory."
(buffer-live-p export-buf-or-file))
(set-buffer export-buf-or-file)
;; run hooks after export and save export
(and (run-hooks 'org-publish-after-export-hook)
(if (buffer-modified-p) (save-buffer)))
(progn (run-hooks 'org-publish-after-export-hook)
(if (buffer-modified-p) (save-buffer)))
(kill-buffer export-buf-or-file))
;; maybe restore buffer's content
(set-buffer init-buf)