Browse Source

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.
Eric S Fraga 5 years ago
parent
commit
0b0bbf6194
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-capture.el

+ 1 - 2
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))