From 0b0bbf619442c6716d530c51aefb6e23f5fe8384 Mon Sep 17 00:00:00 2001 From: Eric S Fraga Date: Thu, 25 Jun 2015 08:58:34 +0100 Subject: [PATCH] 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. --- lisp/org-capture.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index eeb05ca98..ac0ed6f1a 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)) -- 2.11.4.GIT