[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ob-shell intentions and paperwork (was Bash results broken?)
From: |
Ihor Radchenko |
Subject: |
Re: ob-shell intentions and paperwork (was Bash results broken?) |
Date: |
Mon, 02 Jan 2023 09:47:10 +0000 |
Matt <matt@excalamus.com> writes:
> If this set of patches look good, I can push them to main.
Just one more comment.
You are using constructs like
(if (should ...)
(kill-buffer ...))
They will not be reliable when tests are executed interactively.
If the `should' condition fails, `kill-buffer' will never be executed
leaving dirty state, especially for sessions.
You can instead use
(unwind-protect
(should ...)
(kill-buffer ...))
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: ob-shell intentions and paperwork (was Bash results broken?), Matt, 2023/01/01
- Re: ob-shell intentions and paperwork (was Bash results broken?),
Ihor Radchenko <=
- Re: ob-shell intentions and paperwork (was Bash results broken?), Matt, 2023/01/02
- Re: ob-shell intentions and paperwork (was Bash results broken?), Ihor Radchenko, 2023/01/03
- Re: ob-shell intentions and paperwork (was Bash results broken?), Matt, 2023/01/03
- Re: ob-shell intentions and paperwork (was Bash results broken?), Ihor Radchenko, 2023/01/05
- Re: ob-shell intentions and paperwork (was Bash results broken?), Bastien Guerry, 2023/01/05
- Re: ob-shell intentions and paperwork (was Bash results broken?), Matt, 2023/01/09
- Re: ob-shell intentions and paperwork (was Bash results broken?), Ihor Radchenko, 2023/01/11
- Re: ob-shell intentions and paperwork (was Bash results broken?), Matt, 2023/01/11
- Re: ob-shell intentions and paperwork (was Bash results broken?), Ihor Radchenko, 2023/01/11
- Re: ob-shell intentions and paperwork (was Bash results broken?), Matt, 2023/01/11