Closed yatsky closed 4 years ago
The 25.1 issue is readily resolved. The larger issue is why ob-ein breaks so
many org conventions that (org-babel-remove-result)
was deemed necessary in
the first place. No other ob-
modules do this. No other ob-
modules
depend on the "drawer" keyword.
org-babel-insert-result
defaults to "replace" the old
result, so why do we explicitly need to org-babel-remove-result
before
inserting? The original authors of ob-ein, myself included, are not
experienced org users and I likely need to rewrite the results logic.
Thanks @dickmao . Could you please explain more about the 25.1 issue? I'm not sure what you meant by "is readily resolved" as the code hasn't been updated. Thank you.
The 25.1 issue can be readily resolved by using one argument if major-version is less than 26, and two if not. Instead though, I've removed the call to org-babel-remove-result so I hope that resolves your issue.
Your issue has led me to rectify a basic misunderstanding about org-babel, the details of which are in 42134ad. Such stunningly basic failures really make me question, as in the past, whether ob-ein is useful to anyone.
Thanks for the reply. I guess my real question was why condition-case
was not working but just didn't make it clear.
I'm glad that this issue has helped in making EIN better. I really love it and really appreciate the effort you guys are putting into it.
Now that you mentioned it and after reading @millejoh 's reply , I totally forgot why I always use ein-python
instead of just ob-python
since it seems what I wanted can be easily achieved by just using ob-python
.
The 25.1 error is a compilation error. Your condition-case would likely work at run-time, but the tests require clean compilation.
Hi,
I was trying to stop
ob-ein
from removing keywords like#+NAME
and#+CAPTION
from my results block after executing a source block. For example, this is the original results block.After executing the src block again, I'd get this result:
I basically made the following changes in
ob-ein.el
to achieve what I wanted (I'm using Emacs 26.3).I also tried to create a pull request but it just couldn't pass the tests with Emacs 25.1 and I got the following error during testing:
This is quite strange to me as I'm already using
(condition-case)
with(error)
but the program seems to be ignoring what I wrote there (also tried(wrong-number-of-arguments)
but to no avail either).I'm not sure what to do now...