[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH 1/2] lisp/ob.el: Fix org-babel-result-regexp to match use
From: |
Eric Schulte |
Subject: |
Re: [O] [PATCH 1/2] lisp/ob.el: Fix org-babel-result-regexp to match users |
Date: |
Thu, 02 Jun 2011 12:20:03 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Applied, Thanks -- Eric
Lawrence Mitchell <address@hidden> writes:
> * lisp/ob.el (org-babel-result-regexp): Use non-shy group around
> org-babel-data-names.
>
> By default regexp-opt returns a shy group around its arguments. But
> users of org-babel-result-regexp expect the third match-string to
> contain the hash. With a shy group, the second match-string contains
> the hash.
> ---
> lisp/ob.el | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lisp/ob.el b/lisp/ob.el
> index 27f005c..e1f4372 100644
> --- a/lisp/ob.el
> +++ b/lisp/ob.el
> @@ -310,7 +310,7 @@ specific header arguments as well.")
>
> (defvar org-babel-result-regexp
> (concat "^[ \t]*#\\+"
> - (regexp-opt org-babel-data-names)
> + (regexp-opt org-babel-data-names t)
> "\\(\\[\\([[:alnum:]]+\\)\\]\\)?\\:[ \t]*")
> "Regular expression used to match result lines.
> If the results are associated with a hash key then the hash will
--
Eric Schulte
http://cs.unm.edu/~eschulte/