forked from mirrors/org-mode
Publishing: Run the after-export-hook
This commit is contained in:
parent
48d4ebeb80
commit
3e7d69d335
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue