summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawrence Mitchell <wence@gmx.li>2011-06-02 11:04:04 +0100
committerEric Schulte <schulte.eric@gmail.com>2011-06-02 12:07:21 -0600
commit3f614328985ce3932ed48583b84972b91a0ddb22 (patch)
treef03c5823725047e99a9de75a208bd309bf292770
parentcf708c72e5287b9fef0fe290d94fdb0b73674819 (diff)
downloadorg-mode-3f614328985ce3932ed48583b84972b91a0ddb22.tar.gz
lisp/ob.el: Fix org-babel-result-regexp to match users
* 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.
-rw-r--r--lisp/ob.el2
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