Browse Source

Restore point when exporting a subtree

* lisp/org-exp.el (org-export): Restore point when exporting a subtree.
Carsten Dominik 13 years ago
parent
commit
a3c3ff3fde
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-exp.el

+ 1 - 0
lisp/org-exp.el

@@ -1012,6 +1012,7 @@ Pressing `1' will switch between these two options."
 		 (message "Export buffer: "))
 		((not subtree-p)
 		 (setq subtree-p t)
+		 (setq bpos (point))
 		 (message "Export subtree: "))))
 	(when (eq r1 ?\ )
 	  (let ((case-fold-search t)