From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Re: Bug: Refile sometimes loses the last line [7.7 (release_7.7.15.gc363)] Date: Thu, 04 Aug 2011 09:35:24 -0500 Message-ID: <87r5519rdf.fsf@riotblast.dunsmor.com> References: <8762mh69yj.fsf@norang.ca> <8762meedru.fsf@riotblast.dunsmor.com> <87y5zarmab.fsf@norang.ca> <877h6ti839.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qoz1D-0007kV-E2 for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 10:35:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qoz1C-0000J3-Ar for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 10:35:27 -0400 Received: from deathroller.dunsmor.com ([98.129.169.48]:43661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qoz1C-0000Ix-5m for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 10:35:26 -0400 In-Reply-To: <877h6ti839.wl%dmaus@ictsoc.de> (David Maus's message of "Thu, 04 Aug 2011 16:07:06 +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: Bernt Hansen , emacs-orgmode@gnu.org Hi David, > I just pushed a simplified version of the solution: No need to count > lines, just check if point is at end of buffer. 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? Thanks, Jason