mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:07:46 +00:00
ob-ref: bug fix in new function
* lisp/ob-ref.el (org-babel-ref-goto-headline-id): Fix bug.
This commit is contained in:
parent
554021ad7f
commit
cb67a439b1
|
@ -82,6 +82,7 @@ the variable."
|
||||||
out))))))
|
out))))))
|
||||||
|
|
||||||
(defun org-babel-ref-goto-headline-id (id)
|
(defun org-babel-ref-goto-headline-id (id)
|
||||||
|
(goto-char (point-min))
|
||||||
(let ((rx (regexp-quote id)))
|
(let ((rx (regexp-quote id)))
|
||||||
(or (re-search-forward
|
(or (re-search-forward
|
||||||
(concat "^[ \t]*:CUSTOM_ID:[ \t]+" rx "[ \t]*$") nil t)
|
(concat "^[ \t]*:CUSTOM_ID:[ \t]+" rx "[ \t]*$") nil t)
|
||||||
|
|
Loading…
Reference in a new issue