forked from mirrors/org-mode
My personal patches-in-progress branch of Org.
See https://git.tecosaur.net/mirrors/org-mode/compare/main..tec/org-mode:dev.
* lisp/ob-python.el (org-babel-python--eval-ast): Removed. (org-babel-python-format-session-value): New function that returns Python code to evaluate for sessions with value results. (org-babel-python-evaluate-session): Replace org-babel-python--eval-ast with org-babel-python-format-session-value. Motivation is that the new function is more flexible than the old format string. We can pass in the full result-params, which can be used to add more formatting options in future. We could also add more optional arguments in the future to extend this functionality. This function will be particularly helpful for a couple patches after 9.4: - ob-reticulate - https://orgmode.org/list/875z98gj4f.fsf@gmail.com/ - Improved formatting - https://orgmode.org/list/87eenpfe77.fsf@gmail.com/ However, I add this function in now 9.4, so those future patches can rely on it in 9.4. In particular, ob-reticulate will probably be packaged separately from org-mode, and I want to provide a stable interface to it so that it can be released after 9.4. |
||
---|---|---|
contrib | ||
doc | ||
etc | ||
lisp | ||
mk | ||
testing | ||
.dir-locals.el | ||
.gitignore | ||
.gitmodules | ||
CONTRIBUTE | ||
COPYING | ||
Makefile | ||
README | ||
README_ELPA | ||
request-assign-future.txt |
-*- mode: org; fill-column:70 -*- This is a distribution of Org, a plain text notes and project planning tool for Emacs. Check the [[https://orgmode.org][homepage of Org]] and the [[https://orgmode.org/org.html#Installation][installations instructions]]. * Contents of this distribution - README :: This file. - COPYING :: The GNU General Public License. - Makefile :: The makefile to compile and install Org. For installation instructions, see the manual or [[https://orgmode.org/worg/dev/org-build-system.html][the more detailed procedure on Worg]]. - mk/ :: Files needed for building Org. - lisp/ :: Directory with all the Emacs Lisp files that make up Org. - doc/ :: The documentation files. org.texi is the source of the documentation, org.html and org.pdf are formatted versions of it. - contrib/ :: A directory with third-party additions for Org. Some really cool stuff is in there. - etc/ :: Files needed for the ODT exporter. - testing/ :: Testing suite for Org. - request-assign-future.txt :: The form that contributors have to sign and get processed with the FSF before contributed changes can be integrated into the Org core. All files in this distribution except the contrib/ directory have copyright assigned to the FSF. * License Org-mode is published under [[https://www.gnu.org/licenses/gpl-3.0.html][the GNU GPLv3 license]] or any later version, the same as GNU Emacs. See the COPYING file in this directory.