ox.el (org-export-as): Allow user functions in `org-export-before-parsing-hook' to modify the point

* ox.el (org-export-as): Allow user functions in
`org-export-before-parsing-hook' to modify the point.

Thanks to Charles Berry for reporting this.
This commit is contained in:
Bastien Guerry 2013-03-19 18:09:01 +01:00
parent 1ab084ba73
commit 492e20dbfa
1 changed files with 2 additions and 1 deletions

View File

@ -2881,7 +2881,8 @@ Return code as a string."
(org-update-radio-target-regexp)
;; Run last hook with current back-end as argument.
(goto-char (point-min))
(run-hook-with-args 'org-export-before-parsing-hook backend)
(save-excursion
(run-hook-with-args 'org-export-before-parsing-hook backend))
;; Update communication channel with environment. Also
;; install user's and developer's filters.
(setq info