diff --git a/contrib/babel/lisp/org-babel-ref.el b/contrib/babel/lisp/org-babel-ref.el index 84d7d5e3a..200d81208 100644 --- a/contrib/babel/lisp/org-babel-ref.el +++ b/contrib/babel/lisp/org-babel-ref.el @@ -118,7 +118,7 @@ return nil." (setq split-ref (match-string 2 ref)) (find-file split-file) (setq ref split-ref)) (goto-char (point-min)) - (if (let ((result_regexp (concat "^#\\+\\(TBLNAME\\|RESNAME\\|RESULT\\):[ \t]*" + (if (let ((result_regexp (concat "^#\\+\\(TBLNAME\\|RESNAME\\|RESULTS\\):[ \t]*" (regexp-quote ref) "[ \t]*$")) (regexp (concat org-babel-source-name-regexp (regexp-quote ref) "\\(\(.*\)\\)?" "[ \t]*$")))