On Tuesday, 23 Jun 2015 at 22:31, Nicolas Goaziou wrote:

[...]

> It looks good. Could you turn it into a proper patch with a commit
> message? 

Attached.  Thanks!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1231-ga0a883
>From 9256af03530bcd34914f32fc1b7fbbba9cb0d80a Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fr...@ucl.ac.uk>
Date: Thu, 25 Jun 2015 08:58:34 +0100
Subject: [PATCH] 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 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))
-- 
1.9.1

Reply via email to