瀏覽代碼

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.
Bastien Guerry 12 年之前
父節點
當前提交
492e20dbfa
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ox.el

+ 2 - 1
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