diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2013-02-28 12:53:45 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2013-02-28 12:53:45 +0100 |
commit | 8f3a109a2177a759bda2d7550b79cef6c0183bc7 (patch) | |
tree | 2eb47080895e7291269afcd639ceb9ce0fc3d618 | |
parent | 8e0b4529f780de4e442d26a7ba4aedd892c78c5b (diff) | |
download | org-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.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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))) |