forked from mirrors/org-mode
Merge branch 'bugfix'
This commit is contained in:
commit
9bbc21df84
|
@ -2015,12 +2015,12 @@ buffer or nil if no such result exists."
|
||||||
|
|
||||||
(defun org-babel-result-names (&optional file)
|
(defun org-babel-result-names (&optional file)
|
||||||
"Return the names of results in FILE or the current buffer."
|
"Return the names of results in FILE or the current buffer."
|
||||||
(save-excursion
|
(with-current-buffer (if file (find-file-noselect file) (current-buffer))
|
||||||
(when file (find-file file)) (goto-char (point-min))
|
(org-with-point-at 1
|
||||||
(let ((case-fold-search t) names)
|
(let ((case-fold-search t) names)
|
||||||
(while (re-search-forward org-babel-result-w-name-regexp nil t)
|
(while (re-search-forward org-babel-result-w-name-regexp nil t)
|
||||||
(setq names (cons (match-string-no-properties 9) names)))
|
(setq names (cons (match-string-no-properties 9) names)))
|
||||||
names)))
|
names))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun org-babel-next-src-block (&optional arg)
|
(defun org-babel-next-src-block (&optional arg)
|
||||||
|
|
Loading…
Reference in New Issue