From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [Patch] Kill capture-template selection buffer after C-g Date: Sat, 26 Jun 2010 07:18:52 +0200 Message-ID: <8C49BAEC-86E3-4276-9388-FF947B18CE33@gmail.com> References: <87mxuibwg1.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=49920 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSNsE-0002g2-Hu for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 01:24:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSNn6-0002iS-74 for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 01:18:57 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:52806) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSNn5-0002iF-Vw for emacs-orgmode@gnu.org; Sat, 26 Jun 2010 01:18:56 -0400 Received: by wyb39 with SMTP id 39so2146746wyb.0 for ; Fri, 25 Jun 2010 22:18:55 -0700 (PDT) In-Reply-To: <87mxuibwg1.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Emacs-orgmode mailing list Applied, with modification, thanks - Carsten On Jun 26, 2010, at 12:04 AM, Sebastian Rose wrote: > > `C-c c' brings up the template selection. If you press `C-g' to quit > capturing, the buffer is not deleted. Instead the old window > configuration is restored and the buffer is the second on the buffer > stack. `C-x b' switches to the selection buffer again surprisingly. > > > The appended patch fixes this issue. Carsten: this patch depends on > the > currently undocumented return value of > `org-switch-to-buffer-other-window' (the newly created buffer). I'd > suggest to either document it (see the second patch) or alter the > patch: > > (setq buffer (get-buffer "*Org Select*")) > > > value-of-function.patch> > > Best wishes > > Sebastian > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten