From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Rossetti Subject: 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 00:21:47 +0200 Message-ID: <84ppglb24k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCyja-00074Z-IV for emacs-orgmode@gnu.org; Thu, 31 Jul 2014 18:22:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCyjR-0002c0-Hg for emacs-orgmode@gnu.org; Thu, 31 Jul 2014 18:22:02 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:59852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCyjR-0002aR-AE for emacs-orgmode@gnu.org; Thu, 31 Jul 2014 18:21:53 -0400 Received: by mail-wg0-f52.google.com with SMTP id a1so3416716wgh.35 for ; Thu, 31 Jul 2014 15:21:51 -0700 (PDT) Received: from LAPTOP-ANDREA.laptop-andrea.trieste.it (adsl-ull-130-189.51-151.net24.it. [151.51.189.130]) by mx.google.com with ESMTPSA id gc1sm2094929wib.22.2014.07.31.15.21.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 31 Jul 2014 15:21:50 -0700 (PDT) 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi guys, I think I found a problem in folding a BEGIN_SRC block. 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. Can anyone please confirm if the described issue is reproducible? (if your answer is "yes", but you think it's a very minor problem: I agree with you, it's just better if we know it :) Thanks for your attention, kindest regards. Andrea PS: a test case file is attached here: --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=ecm_org_src_block_folds_partially.org #+BEGIN_SRC org ,#+BEGIN_SRC org block1 ,#+END_SRC ,#+BEGIN_SRC org block2 ,#+END_SRC #+END_SRC --=-=-= Content-Type: text/plain Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600) of 2013-03-17 on MARVIN Package: Org-mode version 8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/) --=-=-=--