Browse Source

ob: fix small bug in `org-babel-src-block-names'

* lisp/ob.el (org-babel-src-block-names): Fix bug, wrong match-string
  used after update to regexp.
Eric Schulte 14 years ago
parent
commit
ea847dcb5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -1129,7 +1129,7 @@ org-babel-named-src-block-regexp."
     (when file (find-file file)) (goto-char (point-min))
     (let (names)
       (while (re-search-forward org-babel-src-name-w-name-regexp nil t)
-	(setq names (cons (org-babel-clean-text-properties (match-string 3))
+	(setq names (cons (org-babel-clean-text-properties (match-string 4))
 			  names)))
       names)))