From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Getting rid of split frame with org-capture Date: Fri, 04 Oct 2013 09:06:23 +0200 Message-ID: References: <20111112155731.GA5939@shi.workgroup> <1377.1321157591@alphaville.dokosmarshall.org> <878vnkaryi.fsf@hermes.hocat.ca> <20351.1321207041@alphaville.dokosmarshall.org> <878vna22kv.fsf@hermes.hocat.ca> <87wra0cbjk.fsf@med.uni-goettingen.de> <87hb13kt2k.fsf@loki.hocat.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRzT5-0005JT-GG for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 03:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRzSy-0006hh-7F for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 03:06:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:57740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRzSy-0006ek-0d for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 03:06:24 -0400 In-reply-to: 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: Alexander Vorobiev Cc: emacs-orgmode alexander.vorobiev@gmail.com writes: > I also wanted to have new pop-up org-capture window that would be created > in > response to some shortcut anywhere in Windows and occupied the entire > frame. > Since I haven't found any solutions, I just modified a function I saw in > this thread: > > (defun make-capture-frame () > "Create a new frame and run org-capture." > (interactive) > (make-frame '((name . "capture"))) > (select-frame-by-name "capture") > (delete-other-windows) > (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer > buf))) > (org-capture))) > > The culprit is switch-to-buffer-other-window that ultimately gets called by > org-capture so I just reassign it temporarily to switch-to-buffer. This is working great, thanks a lot! Alan