From 5566c371f20228b0b33be54537c95f2d2fb6b191 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 13 Sep 2022 18:55:06 +0800 Subject: [PATCH 1/3] ob-core: Display position of executed babel blocks * 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): --- lisp/ob-core.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 8a963fa8e..767586376 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -779,7 +779,9 @@ (defun org-babel-execute-src-block (&optional arg info params) (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 point %d" (nth 5 info))))) (setq result (let ((r (funcall cmd body params))) (if (and (eq (cdr (assq :result-type params)) 'value) -- 2.37.1