summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S Fraga <e.fraga@ucl.ac.uk>2015-06-25 08:58:34 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-06-25 14:21:56 +0200
commit0b0bbf619442c6716d530c51aefb6e23f5fe8384 (patch)
treebc8a5091a2df93a47120ba464a195d4c3173352b
parent70bfa4027b02aecb18627e65e329fe28b44ca4ab (diff)
downloadorg-mode-0b0bbf619442c6716d530c51aefb6e23f5fe8384.tar.gz
org-capture: Place capture buffer in other window
* org-capture.el (org-capture-fill-template): The capture template buffer will be displayed in another window, keeping original window visible if appropriate.
-rw-r--r--lisp/org-capture.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index eeb05ca..ac0ed6f 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1590,8 +1590,7 @@ The template may still contain \"%?\" for cursor positioning."
(unless template (setq template "") (message "No template") (ding)
(sit-for 1))
(save-window-excursion
- (delete-other-windows)
- (org-pop-to-buffer-same-window (get-buffer-create "*Capture*"))
+ (org-switch-to-buffer-other-window (get-buffer-create "*Capture*"))
(erase-buffer)
(insert template)
(goto-char (point-min))