From b22714a88d0f80747f931b047d98feb0e457c74c Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 16 Dec 2013 21:00:57 +0100 Subject: [PATCH] org-element: Keep compatibility with Babel's regexps * lisp/org-element.el (org-element-inline-babel-call-successor): Use original regexp to stay up-to-date with Babel changes. --- lisp/org-element.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index 1b9618708..b1329b3ff 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -2918,12 +2918,8 @@ CONTENTS is nil." Return value is a cons cell whose CAR is `inline-babel-call' and CDR is beginning position." (save-excursion - ;; Use a simplified version of - ;; `org-babel-inline-lob-one-liner-regexp'. - (when (re-search-forward - "call_\\([^()\n]+?\\)\\(?:\\[.*?\\]\\)?([^\n]*?)\\(\\[.*?\\]\\)?" - nil t) - (cons 'inline-babel-call (match-beginning 0))))) + (when (re-search-forward org-babel-inline-lob-one-liner-regexp nil t) + (cons 'inline-babel-call (match-end 1))))) ;;;; Inline Src Block