From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [feature request] org-capture-window-setup to stop capture window taking up whole frame Date: Thu, 25 Jun 2015 09:00:16 +0100 Message-ID: <871th0usj3.fsf@ucl.ac.uk> References: <87zj4ate9f.fsf@pinto.chemeng.ucl.ac.uk> <5575C4C7.3050702@verizon.net> <874mm6pwsh.fsf@delle7240.chemeng.ucl.ac.uk> <62a7f4ad0cbf4b37a52a0d8f324218b6@fcmailsvr2.familycareinc.org> <87a8vxcut6.fsf@delle7240.chemeng.ucl.ac.uk> <87oak6rwsg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z82EU-0004G9-VD for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 04:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z82ER-0000gX-Ly for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 04:10:02 -0400 Received: from mail-db3on0112.outbound.protection.outlook.com ([157.55.234.112]:34240 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z825F-0005dP-5e for emacs-orgmode@gnu.org; Thu, 25 Jun 2015 04:00:29 -0400 In-Reply-To: <87oak6rwsg.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 23 Jun 2015 22:31:59 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-place-capture-buffer-in-other-window.patch >From 9256af03530bcd34914f32fc1b7fbbba9cb0d80a Mon Sep 17 00:00:00 2001 From: Eric S Fraga 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 --=-=-=--