[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code b
From: |
Damien Cassou |
Subject: |
Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)] |
Date: |
Tue, 12 Mar 2024 22:07:50 +0100 |
Hi Ihor,
Ihor Radchenko <yantar92@posteo.net> writes:
> Thanks for the patch, but it is not obvious that skipping src blocks
> that cannot be executed is always a good idea. Consider, for example,
> that some blocks are used as input for other blocks. Then, failing to
> execute them means that other blocks may have unpredictable side
> effects.
I don't understand your position. Without this patch, executing
`org-babel-execute-buffer' will just crash if a block can't be
executed. What problem can skipping those could cause?
> May you please provide a concrete use-case when skipping some src code
> blocks is desired?
I use text-mode blocks to represent output of bash scripts as in:
#+name: repo-test-check
#+begin_src sh :exports both :results output raw :wrap SRC text
git log --oneline
#+end_src
#+RESULTS: repo-test-check
#+begin_SRC text
cfd2b (HEAD -> main) Empty
#+end_SRC
The second block can't be executed because no
`org-babel-execute:text` function exists.
Best
--
Damien Cassou
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
- [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Damien Cassou, 2024/03/09
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Ihor Radchenko, 2024/03/12
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)],
Damien Cassou <=
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Ihor Radchenko, 2024/03/12
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Damien Cassou, 2024/03/16
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Ihor Radchenko, 2024/03/16
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Damien Cassou, 2024/03/16
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Gerard Vermeulen, 2024/03/17
- Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)], Ihor Radchenko, 2024/03/17