From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aankhen Subject: Re: [BUG] Unmatched #+end-src Date: Sun, 13 Mar 2011 01:50:17 +0530 Message-ID: References: <87ei6cffbw.fsf@btinternet.com> <87bp1gw1a4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=52965 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyVIl-0008Id-K9 for emacs-orgmode@gnu.org; Sat, 12 Mar 2011 15:20:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyVIk-0005nH-2K for emacs-orgmode@gnu.org; Sat, 12 Mar 2011 15:20:39 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:50651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyVIj-0005n2-UT for emacs-orgmode@gnu.org; Sat, 12 Mar 2011 15:20:38 -0500 Received: by vxk12 with SMTP id 12so480392vxk.0 for ; Sat, 12 Mar 2011 12:20:37 -0800 (PST) In-Reply-To: <87bp1gw1a4.fsf@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: Nicolas , Martyn Jago , Org-mode ml Hi, On Sun, Mar 13, 2011 at 01:37, Nicolas wrote: > Aankhen writes: > >>> --8<---------------cut here---------------start------------->8--- >>> * Unmatched #+end-src bug >>> >>> #+end_src >>> --8<---------------cut here---------------end--------------->8--- >>> >>> With the above simple org file, placing the cursor at the end of >>> #+end_src and hitting return causes emacs to hang. >>> >> The =3Dcond=3D is part of a =3Dwhile=3D loop; it just keeps looping, ent= ering >> that branch and doing nothing (rather than moving point and picking up >> again from there). =C2=A0Going by the other branches, I think the correc= t >> thing to do is just exit the loop: > > I don't think exiting the loop that way is the right thing to do, as it > always return nil, even though the #+end_ might be in the list. > > [snip] You=E2=80=99re right, I lost the context. My apologies for the ill-conceiv= ed patch. Aankhen