Skip to content

Commit

Permalink
ob-core: Display position of executed babel blocks
Browse files Browse the repository at this point in the history
* lisp/ob-core.el (org-babel-execute-src-block): When an unnamed babel
block is executed, show the position of the block.

This makes it easier to track the execution without having to name every
block.

ob-core: point

* lisp/ob-core.el (org-babel-execute-src-block):
  • Loading branch information
tecosaur committed Sep 24, 2022
1 parent 0a6a56c commit 392ccbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/ob-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ block."
(message "executing %s code block%s..."
(capitalize lang)
(let ((name (nth 4 info)))
(if name (format " (%s)" name) "")))
(if name
(format "(%s)" name)
(format "at position %d" (nth 5 info)))))
(setq result
(let ((r (funcall cmd body params)))
(if (and (eq (cdr (assq :result-type params)) 'value)
Expand Down

0 comments on commit 392ccbb

Please sign in to comment.