From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Subtle bug with capture and refile Date: Thu, 21 Oct 2010 22:27:08 +0200 Message-ID: <4E22A80F-74F6-409F-8BEA-282933F223D0@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34383 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P91jD-0001sV-Hd for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 16:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P91jC-00040U-CJ for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 16:27:11 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:48676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P91jC-00040P-6c for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 16:27:10 -0400 Received: by eydd26 with SMTP id d26so4568eyd.0 for ; Thu, 21 Oct 2010 13:27:09 -0700 (PDT) In-Reply-To: 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: John Rakestraw Cc: emacs-orgmode Thanks for doing the testing. - Carsten On Oct 21, 2010, at 8:29 PM, John Rakestraw wrote: > 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