From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Cycling visibility of blocks Date: Tue, 2 Jun 2009 19:12:45 +0200 Message-ID: References: <87skiuryr2.fsf@selenimh.orion.org> <87ljomnfni.fsf@kassiopeya.MSHEIMNETZ> <04195B46-5D81-4E64-8315-CD2085E49357@gmail.com> <87y6slmteu.fsf@kassiopeya.MSHEIMNETZ> <87ljokncfd.fsf@kassiopeya.MSHEIMNETZ> <8D2C1863-8174-47C2-A195-3887FB10374F@gmail.com> <878wkabnkc.fsf@selenimh.orion.org> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBXXk-0000ie-3x for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 13:12:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBXXe-0000ga-Uf for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 13:12:55 -0400 Received: from [199.232.76.173] (port=57259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBXXe-0000gO-Qb for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 13:12:50 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:5177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBXXd-0006Ac-El for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 13:12:49 -0400 Received: by fg-out-1718.google.com with SMTP id l27so681425fgb.7 for ; Tue, 02 Jun 2009 10:12:48 -0700 (PDT) In-Reply-To: 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: Eric Schulte Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Jun 2, 2009, at 6:47 PM, Eric Schulte wrote: > Good catch, > > I'm not sure what is causing this problem, but the attached patch > which > changes the regexp seems to solve it. > > Thanks -- Eric > > > diff --git a/lisp/org.el b/lisp/org.el > index 1c3dfe5..6792bed 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -5146,8 +5146,7 @@ Optional argument N means, put the headline > into the Nth line of the window." > ;;; Folding of blocks > > (defconst org-block-regexp > - > - "^[ \t]*#\\+begin_\\([^ \n]+\\)\\(\\([^\n]+\\)\\)?\n\\([^\000]+?\ > \)#\\+end_\\1" > + "^[ \t]*#\\+begin_\\([^ \n]+\\)\\(\\([^\n]+\\)\\)?\n\\([^\000]+?\ > \)#\\+end_\\1[ \t]?" > "Regular expression for hiding blocks.") > > (defvar org-hide-block-overlays nil > > > > > Carsten Dominik writes: > >> Hello, >> >> Isn't there something wrong with the regexp as the snippet is not >> working well when #+END_SOMETHING is followed right away by a new >> line ? >> >> I mean >> >> >> #+BEGIN_QUOTE >> Test etn ntes thens hsne htsne nste thnes sne thsne htse nthes >> ehtse hntse hents >> #+END_QUOTE <--- notice the space >> >> Blah blah >> >> >> is showing the expected behavior when >> >> >> #+BEGIN_QUOTE >> Test etn ntes thens hsne htsne nste thnes sne thsne htse nthes >> ehtse hntse hents >> #+END_QUOTE <---nothing >> >> >> actually results in >> >> >> #+BEGIN_QUOTE >> Test etn ntes thens hsne htsne nste thnes sne thsne htse nthes... >> Blah blah >> >> >> There's no problem when the text within is not split across two line, >> though.