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, 18 Jun 2015 08:57:57 +0100 Message-ID: <87a8vxcut6.fsf@delle7240.chemeng.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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Uyp-0004ah-61 for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 04:15:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5Uyl-0004MU-Uy for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 04:15:23 -0400 Received: from mail-am1on0117.outbound.protection.outlook.com ([157.56.112.117]:27680 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Uyl-0004MP-Lj for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 04:15:19 -0400 In-Reply-To: <62a7f4ad0cbf4b37a52a0d8f324218b6@fcmailsvr2.familycareinc.org> (Subhan Michael Tindall's message of "Wed, 17 Jun 2015 16:41:05 +0000") 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: Subhan Michael Tindall Cc: Charles Millar , "emacs-orgmode@gnu.org" , Kaushal On Wednesday, 17 Jun 2015 at 16:41, Subhan Michael Tindall wrote: > Quickie patch, maybe I'll work it up as per comments later & submit > but this will fix things for you (no guarantees, not widely tested) Thanks for this. Works okay if there is more than one window which is a step in the right direction. In any case, you've pointed me in the right direction and the following seems to work fine (with very limited testing): --8<---------------cut here---------------start------------->8--- 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)) --8<---------------cut here---------------end--------------->8--- Feedback from real emacs lisp people welcome... thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1216-gb856f6