diff options
author | Bastien Guerry <bzg@altern.org> | 2013-11-06 16:26:38 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-11-06 16:26:38 +0100 |
commit | 47b0eec8dc39990731f400640d64ab70a8356ccd (patch) | |
tree | 8d64c7bd097f2747341353a58b4b831bff4811a1 | |
parent | fe3379bda6ca23474639b114592958bf14431c88 (diff) | |
download | org-mode-47b0eec8dc39990731f400640d64ab70a8356ccd.tar.gz |
org-capture.el (org-capture-refile): Don't finalize prematurely
* org-capture.el (org-capture-refile): Don't finalize
prematurely.
Thanks to Rodrigo Amestica for reporting this.
-rw-r--r-- | lisp/org-capture.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 804539e..39804ac 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -789,14 +789,14 @@ already gone. Any prefix argument will be passed to the refile command." (let ((pos (point)) (base (buffer-base-buffer (current-buffer))) (org-refile-for-capture t)) - (org-capture-finalize) (save-window-excursion (with-current-buffer (or base (current-buffer)) (save-excursion (save-restriction (widen) (goto-char pos) - (call-interactively 'org-refile))))))) + (call-interactively 'org-refile))))) + (org-capture-finalize))) (defun org-capture-kill () "Abort the current capture process." |