From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: Subtle bug with capture and refile Date: Fri, 22 Oct 2010 16:13:01 +0200 Message-ID: References: <4E22A80F-74F6-409F-8BEA-282933F223D0@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1770626428==" Return-path: Received: from [140.186.70.92] (port=56103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9IMh-0000IC-Up for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 10:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9IMg-0003zJ-RR for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 10:13:03 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:42335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9IMg-0003yt-N9 for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 10:13:02 -0400 Received: by gwb19 with SMTP id 19so820098gwb.0 for ; Fri, 22 Oct 2010 07:13:01 -0700 (PDT) In-Reply-To: <4E22A80F-74F6-409F-8BEA-282933F223D0@gmail.com> 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 --===============1770626428== Content-Type: multipart/alternative; boundary=000e0cd298d27fc4dd0493353dba --000e0cd298d27fc4dd0493353dba Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Work for me too, thanks for the quick fix! Cheers Chris. On 21 October 2010 22:27, Carsten Dominik wrote= : > 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 >> > > > _______________________________________________ > 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 > --=20 Postdoctoral Research Fellow Molecular Imaging Group Leibniz-Institut f=FCr Molekulare Pharmakologie (FMP) Campus Berlin-Buch Robert-Roessle-Str. 10 13125 Berlin, Germany Phone: 00493094793-279 --000e0cd298d27fc4dd0493353dba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Work for me too, thanks for the quick fix!

Cheers
Chris.

<= div class=3D"gmail_quote">On 21 October 2010 22:27, Carsten Dominik <carsten.dominik= @gmail.com> wrote:
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. =A0Could
you please try the following patch?


Your patch seems to fix the problem.

Thanks --

John

Thanks.

- Carsten

=A0 =A0 =A0 =A0Modified 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."
=A0(unless (eq (org-capture-get :type 'local) 'entry)
=A0 (error
=A0 =A0"Refiling from a capture buffer makes only sense for `entry= 9;-
type templates"))
+ =A0(if (and (bolp) (eobp)) (backward-char 1))
=A0(let ((pos (point))
=A0 =A0 =A0 =A0(base (buffer-base-buffer (current-buffer)))
=A0 =A0 =A0 =A0(org-refile-for-capture t))


--
John Rakestraw


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Postdoctoral Researc= h Fellow
Molecular Imaging Group
Leibniz-Ins= titut f=FCr Molekulare Pharmakologie (FMP)
Campus Berlin-Buch
Robert-Roessle-Str. 1013125 Berlin, Germany
= Phone: 00493094793-279

--000e0cd298d27fc4dd0493353dba-- --===============1770626428== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1770626428==--