From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] test-org/fuzzy-links Date: Sat, 15 Apr 2017 16:53:42 +0200 Message-ID: <87r30thgcp.fsf@nicolasgoaziou.fr> References: <20170412203354.gnfpxtvqq5ykdsog@laboissiere.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czP59-00059i-31 for emacs-orgmode@gnu.org; Sat, 15 Apr 2017 10:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czP58-0008EA-8r for emacs-orgmode@gnu.org; Sat, 15 Apr 2017 10:53:47 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40257) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1czP58-0008DJ-32 for emacs-orgmode@gnu.org; Sat, 15 Apr 2017 10:53:46 -0400 In-Reply-To: <20170412203354.gnfpxtvqq5ykdsog@laboissiere.net> ("Rafael =?utf-8?Q?Laboissi=C3=A8re=22's?= message of "Wed, 12 Apr 2017 22:33:54 +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" To: Rafael =?utf-8?Q?Laboissi=C3=A8re?= Cc: Org Mode Hello, Rafael Laboissi=C3=A8re writes: > Function org-backward-heading-same-level fails in a specific case. > Suppose the following org-mode file: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > * first > * second > * third > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > where '* first' is right at the beginning of the file. > > When the cursor is at line '* third' and > org-backward-heading-same-level is called, we go to the previous line > correctly. However when the cursor is at '* second', > org-backward-heading-same-level does bring us to the first line but > emits an error "Beginning of buffer". It seems that the patch > attached to this message fixes the problem. Thank you. I eventually applied a slightly different patch, and added some tests. Regards, --=20 Nicolas Goaziou