From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Bug: Refile sometimes loses the last line [7.7 (release_7.7.15.gc363)] Date: Thu, 04 Aug 2011 19:07:20 -0400 Message-ID: <87ty9wbwt3.fsf@norang.ca> References: <8762mh69yj.fsf@norang.ca> <8762meedru.fsf@riotblast.dunsmor.com> <87y5zarmab.fsf@norang.ca> <877h6ti839.wl%dmaus@ictsoc.de> <87r5519rdf.fsf@riotblast.dunsmor.com> <874o1xtc0w.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp70f-0008Oj-Ij for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 19:07:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qp70e-0006mg-J7 for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 19:07:25 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:34086 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp70e-0006mc-F2 for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 19:07:24 -0400 In-Reply-To: <874o1xtc0w.wl%dmaus@ictsoc.de> (David Maus's message of "Thu, 04 Aug 2011 17:46:39 +0200") 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: David Maus Cc: emacs-orgmode@gnu.org, Jason Dunsmore David Maus writes: > At Thu, 04 Aug 2011 09:35:24 -0500, > Jason Dunsmore wrote: >> I just tried out your patch. The logic in your patch is slightly >> different - it checks if the point is at the end of the last line in the >> buffer, whereas mine checks if the point is anywhere on the last line. >> I don't think it fixes the problem. Bernt, can you test it? > > I does it for me and should do the trick. I tracked down the problem > to `org-copy-subtree' not beeing able to correctly determine the end > of the subtree to copy. David's patch works fine for me. Thanks both. Regards, Bernt