Procházet zdrojové kódy

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 <ucecesf@ucl.ac.uk>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00576.html>
Nicolas Goaziou před 7 roky
rodič
revize
21a8ec1c0f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lisp/ob-core.el

+ 1 - 1
lisp/ob-core.el

@@ -1756,7 +1756,7 @@ to `org-babel-named-src-block-regexp'."
       (or (and (looking-at regexp)
       (or (and (looking-at regexp)
 	       (progn (goto-char (match-beginning 1))
 	       (progn (goto-char (match-beginning 1))
 		      (line-beginning-position)))
 		      (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)
 (defun org-babel-src-block-names (&optional file)
   "Returns the names of source blocks in FILE or the current buffer."
   "Returns the names of source blocks in FILE or the current buffer."