emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sean O'Halpin" <sean.ohalpin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Avoid spurious matches to literal "#+end_src" inside source block
Date: Fri, 25 Mar 2011 22:23:34 +0000	[thread overview]
Message-ID: <AANLkTinDwYXf5B8CztK3eb6nfp_BBpRkRgkoNhLvhssH@mail.gmail.com> (raw)

From d5a47db19a6c263b0516c454594296da9f44c428 Mon Sep 17 00:00:00 2001
From: Sean O'Halpin <sean.ohalpin@gmail.com>
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

                 reply	other threads:[~2011-03-25 22:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinDwYXf5B8CztK3eb6nfp_BBpRkRgkoNhLvhssH@mail.gmail.com \
    --to=sean.ohalpin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).