From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Rakestraw Subject: Re: Subtle bug with capture and refile Date: Thu, 21 Oct 2010 14:29:51 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=49517 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8zso-00085W-92 for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 14:28:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8zsm-0002rm-JY for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 14:28:58 -0400 Received: from uis-ipmx-2.pdc.uis.georgetown.edu ([141.161.2.141]:12846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8zsm-0002rc-Hb for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 14:28:56 -0400 In-Reply-To: (Carsten Dominik's message of "Thu, 21 Oct 2010 19:38:20 +0200") 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: Carsten Dominik Cc: emacs-orgmode Hi, Carsten -- On Thu, 21 Oct 2010, Carsten Dominik wrote: > Hi Christopher, > > thank you for taking the time to isolate this bug. Could > you please try the following patch? > Your patch seems to fix the problem. Thanks -- John > Thanks. > > - Carsten > > Modified lisp/org-capture.el > diff --git a/lisp/org-capture.el b/lisp/org-capture.el > index 7915f7f..537f1a4 100644 > --- a/lisp/org-capture.el > +++ b/lisp/org-capture.el > @@ -548,6 +548,7 @@ already gone." > (unless (eq (org-capture-get :type 'local) 'entry) > (error > "Refiling from a capture buffer makes only sense for `entry'- > type templates")) > + (if (and (bolp) (eobp)) (backward-char 1)) > (let ((pos (point)) > (base (buffer-base-buffer (current-buffer))) > (org-refile-for-capture t)) > -- John Rakestraw