From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Incorrect folding of source blocks [8.2.7c (8.2.7c-51-g896fa6-elpa @ /Users/sean/Dropbox/.emacs.d/elpa/org-20140825/)] Date: Sat, 06 Sep 2014 10:39:19 +0200 Message-ID: <87iol1nnwo.fsf@selenimh.mobile.lan> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQBW6-0004B3-Ql for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 04:38:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQBVy-0004ex-Vf for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 04:38:42 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQBVy-0004ep-PG for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 04:38:34 -0400 In-Reply-To: (Sean Allred's message of "Fri, 05 Sep 2014 15:55:05 -0400") 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: Sean Allred Cc: emacs-orgmode@gnu.org Hello, Sean Allred writes: > Consider the following: > > #+begin_src snippet :tangle ".emacs.d/snippets/org-mode/emacs-lisp" > # -*- mode: snippet; require-final-newline: nil -*- > # name: emacs-lisp > # key: el > # binding: direct-keybinding > # -- > ,#+begin_src emacs-lisp > $0 > ,#+end_src > test > #+end_src > > Now, fold the section. You will see > > #+begin_src snippet :tangle ".emacs.d/snippets/org-mode/emacs-lisp"... > test > #+end_src > > My guess is the folding function is going up to the first end_src it > sees and stopping there, not checking to see whether it is actually an > active line. This bug should already be fixed in Org 8.3. However, the fix cannot be backported to Org 8.2. Regards, -- Nicolas Goaziou