From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org src block folds partially [8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)] Date: Fri, 01 Aug 2014 10:54:38 +0200 Message-ID: <87ppgkwpwx.fsf@nicolasgoaziou.fr> References: <84ppglb24k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XD8bK-0004Il-3Q for emacs-orgmode@gnu.org; Fri, 01 Aug 2014 04:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XD8b9-0001g5-V9 for emacs-orgmode@gnu.org; Fri, 01 Aug 2014 04:54:10 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:46904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XD8b9-0001f5-OW for emacs-orgmode@gnu.org; Fri, 01 Aug 2014 04:53:59 -0400 In-Reply-To: <84ppglb24k.fsf@gmail.com> (Andrea Rossetti's message of "Fri, 01 Aug 2014 00:21:47 +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: Andrea Rossetti Cc: emacs-orgmode@gnu.org Hello, Andrea Rossetti writes: > When I: > > - create a "BEGIN_SRC org" block (let's call it "the external > BEGIN_SRC") > - hit C-c ' to edit its contents > - create two consecutive, non-nested "BEGIN_SRC org" blocks > (let's call them "the internal BEGIN_SRCs") > - hit C-c ' to return back to the main org buffer > - hit TAB on the external BEGIN_SRC to fold the whole block > > then the folding happens only for the first internal BEGIN_SRC block. > Tentative guess: I suppose "#+END_SRC" is used as a regexp by the fold > procedure, while something like "[^,]#+END_SRC" could be more > appropriate. This should be fixed (along with other issues in the same function). Thank you for reporting it. Regards, -- Nicolas Goaziou