From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sean O'Halpin" Subject: [PATCH] Avoid spurious matches to literal "#+end_src" inside source block Date: Fri, 25 Mar 2011 22:23:34 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=42413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3FPt-0000uu-Lt for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 18:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3FPs-0003Ud-Me for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 18:23:37 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:54974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3FPs-0003UR-Fy for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 18:23:36 -0400 Received: by bwz17 with SMTP id 17so1490393bwz.0 for ; Fri, 25 Mar 2011 15:23:34 -0700 (PDT) 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: emacs-orgmode@gnu.org >From d5a47db19a6c263b0516c454594296da9f44c428 Mon Sep 17 00:00:00 2001 From: Sean O'Halpin Date: Fri, 25 Mar 2011 22:16:54 +0000 Subject: [PATCH] * lisp/ob.el: Avoid spurious matches to literal "#+end_src" inside a source block. Added newline to org-babel-src-block-regexp. --- lisp/ob.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/ob.el b/lisp/ob.el index 6b4a766..8938b3b 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -141,7 +141,7 @@ remove code block execution from the C-c C-c keybinding." ;; (4) header arguments "\\([^\n]*\\)\n" ;; (5) body - "\\([^\000]*?\n*\\)[ \t]*#\\+end_src") + "\\([^\000]*?\n*\\)\n[ \t]*#\\+end_src") "Regexp used to identify code blocks.") (defvar org-babel-inline-src-block-regexp -- 1.7.0.4