Pārlūkot izejas kodu

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.
Lawrence Mitchell 14 gadi atpakaļ
vecāks
revīzija
3f61432898
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lisp/ob.el

+ 1 - 1
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