From 492e20dbfa1e8112898ee2695feed626781602cb Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 19 Mar 2013 18:09:01 +0100 Subject: [PATCH] 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. --- lisp/ox.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index 5e1d2e756..f9fa03611 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -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