From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Cycling visibility of blocks Date: Tue, 02 Jun 2009 09:47:17 -0700 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 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBX9A-0001mI-Pg for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 12:47:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBX95-0001c2-Oj for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 12:47:32 -0400 Received: from [199.232.76.173] (port=56497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBX95-0001ak-Kj for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 12:47:27 -0400 Received: from mail-px0-f121.google.com ([209.85.216.121]:34076) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBX94-0004Xs-IM for emacs-orgmode@gnu.org; Tue, 02 Jun 2009 12:47:26 -0400 Received: by pxi27 with SMTP id 27so47228pxi.14 for ; Tue, 02 Jun 2009 09:47:25 -0700 (PDT) In-Reply-To: <878wkabnkc.fsf@selenimh.orion.org> (Carsten Dominik's message of "Tue, 02 Jun 2009 18:36:03 +0200") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org --=-=-= 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=block-hide-regexp.patch 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=C2=A0 <--- 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. --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--