summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2013-02-28 12:53:45 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2013-02-28 12:53:45 +0100
commit8f3a109a2177a759bda2d7550b79cef6c0183bc7 (patch)
tree2eb47080895e7291269afcd639ceb9ce0fc3d618
parent8e0b4529f780de4e442d26a7ba4aedd892c78c5b (diff)
downloadorg-mode-8f3a109a2177a759bda2d7550b79cef6c0183bc7.tar.gz
Use base buffer for storing export dispatch position
* lisp/ox.el (org-export-dispatch): Make sure the last position marker uses the base buffer if there is one.
-rw-r--r--lisp/ox.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 26be0fb..3ea34de 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -5317,7 +5317,8 @@ When ARG is \\[universal-argument] \\[universal-argument], display the asynchron
(progn
;; Remember where we are
(move-marker org-export-dispatch-last-position
- (point))
+ (point)
+ (org-base-buffer (current-buffer)))
;; Get and store an export command
(setq org-export-dispatch-last-action
(org-export--dispatch-ui
@@ -5352,7 +5353,7 @@ When ARG is \\[universal-argument] \\[universal-argument], display the asynchron
;; Repeating command, maybe move cursor
;; to restore subtree context
(if (eq (marker-buffer org-export-dispatch-last-position)
- (current-buffer))
+ (org-base-buffer (current-buffer)))
(goto-char org-export-dispatch-last-position)
;; We are in a differnet buffer, forget position
(move-marker org-export-dispatch-last-position nil)))