From 21a8ec1c0f4d1797288a12cd9bfc6446a2ac03cb Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 25 Aug 2017 21:59:28 +0200 Subject: [PATCH] ob-core: Fix going to a named block. * lisp/ob-core.el (org-babel-find-named-block): Add missing argument. Reported-by: Eric S Fraga --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 2e28ac4d1..527fb2204 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1756,7 +1756,7 @@ to `org-babel-named-src-block-regexp'." (or (and (looking-at regexp) (progn (goto-char (match-beginning 1)) (line-beginning-position))) - (ignore-errors (org-next-block 1 nil)))))) + (ignore-errors (org-next-block 1 nil regexp)))))) (defun org-babel-src-block-names (&optional file) "Returns the names of source blocks in FILE or the current buffer."