org-mode/lisp
Daniel Kraus 6efb073463
ob-clojure.el: Fix results output, support clojure-cli
* lisp/ob-clojure.el (org-babel-clojure-backend): Add support for
clojure-cli.
* lisp/ob-clojure.el (org-babel-clojurescript-backend): Move nbb to
clojurescript.
* lisp/ob-clojure.el (org-babel-expand-body:clojure)
* lisp/ob-clojure.el (ob-clojure-eval-with-cider): Return only the
last expression when :results is not set or value, and return only
stdout when :results is set to output.
* lisp/ob-clojure.el (ob-clojure-eval-with-cmd): Rename function as
it is not only for babashka.
* lisp/ob-clojure.el (org-babel-execute:clojure): Differentiate
between Clojure and ClojureScript source blocks.

The problem was that the ob-clojure results where not correctly
taking the results parameter into account.
E.g. with the cider backend, you would get all printed or returned
values for each line in your block:

(def small-map {:a 2 :b 4 :c 8})
{:some :map}
(prn :xx)
(:b small-map)

| #'user/small-map |
| {:some :map}     |
| 4                |

or for babashka you would only get the printed values but not the
last return value:
(def small-map {:a 2 :b 4 :c 8})
{:some :map}
(prn :xx)
(:b small-map)

: :xx

Now when you specify :results value, the result is only the last
returned value, and with :results output you get all values
printed to stdout.
So the examples above would all result in the same:
(def small-map {:a 2 :b 4 :c 8})
{:some :map}
(prn :xx)
(:b small-map)

: 4
2023-03-16 11:25:41 +01:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-C.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-R.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-awk.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-calc.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-clojure.el ob-clojure.el: Fix results output, support clojure-cli 2023-03-16 11:25:41 +01:00
ob-comint.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-core.el org-babel-import-elisp-from-file: Fix the docstring 2023-03-07 14:03:02 +01:00
ob-css.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-ditaa.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-dot.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-emacs-lisp.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-eshell.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-eval.el org-babel-eval: Clarify the purpose of 4a751709b in code 2023-02-01 15:03:50 +03:00
ob-exp.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-forth.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-fortran.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-gnuplot.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-groovy.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-haskell.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-java.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-js.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-julia.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-latex.el * lisp/ob-latex.el: Fix command injection vulnerability 2023-03-12 12:23:46 +01:00
ob-lilypond.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-lisp.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-lob.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-lua.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-makefile.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-matlab.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-maxima.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-ocaml.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-octave.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-org.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-perl.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-plantuml.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-processing.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-python.el ob-python: Remove debugging print statement 2023-02-11 13:18:09 -08:00
ob-ref.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-ruby.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ob-sass.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-scheme.el lisp/ob-scheme: Silence compiler 2023-01-27 13:19:12 +03:00
ob-screen.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-sed.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-shell.el org-babel-shell-initialize: Refactor 2023-01-12 13:35:09 +03:00
ob-sql.el lisp/ob-sql.el: allow string in sql-connection-alist 2023-02-01 14:58:03 +03:00
ob-sqlite.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob-table.el org-sbe: Allow quoting string values 2023-02-23 12:29:18 +03:00
ob-tangle.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ob.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
oc-basic.el org-cite-basic--get-field: Throw an error on non-nil field values 2023-01-17 15:25:00 +03:00
oc-biblatex.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
oc-bibtex.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
oc-csl.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
oc-natbib.el oc-natbib: Provide a fallback bibliography style 2023-02-20 16:48:48 +03:00
oc.el oc: Add org-cite-processor function 2023-02-11 01:38:41 +08:00
ol-bbdb.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ol-bibtex.el Fix BibTeX spelled as Bibtex 2023-03-07 14:06:01 +01:00
ol-docview.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-doi.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-eshell.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-eww.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-gnus.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-info.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-irc.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-man.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-mhe.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-rmail.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol-w3m.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ol.el org-link-abbrev-alist: Fix :safe predicate 2023-02-08 16:44:34 +03:00
org-agenda.el Don't reset `org-todo-keywords-for-agenda' when org-agenda-multi 2023-03-11 11:18:52 +01:00
org-archive.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-attach-git.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-attach.el org-attach: Show Org Attach UI starting from top 2023-01-30 23:01:17 +01:00
org-capture.el org-capture-finalize: Do not save new file with :no-save aborted capture 2023-01-22 13:49:07 +03:00
org-clock.el Merge branch 'bugfix' 2023-03-05 13:22:02 +01:00
org-colview.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-compat.el ob-clojure.el: Fix results output, support clojure-cli 2023-03-16 11:25:41 +01:00
org-crypt.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-ctags.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-cycle.el org-cycle: Allow intuitively used values of of `org-startup-folded' 2023-02-18 15:31:14 +03:00
org-datetree.el lisp/org-datetree.el: Allow datetrees with TODO, priority, tags 2023-01-21 12:29:32 +03:00
org-duration.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-element.el Merge branch 'bugfix' 2023-03-07 14:09:48 +01:00
org-entities.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-faces.el Define the face `org-agenda-calendar-daterange' 2023-01-21 11:27:38 +03:00
org-feed.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-fold-core.el org-fold-core-previous-visibility-change: Fix edge case 2023-02-17 14:58:32 +03:00
org-fold.el Touch up copyright lines from cae528457 2023-01-01 13:12:52 -05:00
org-footnote.el org-compat: Work around Emacs bug#60467 2023-02-10 14:37:09 +03:00
org-goto.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-habit.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-id.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-indent.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-inlinetask.el Merge branch 'bugfix' 2023-01-01 13:15:12 -05:00
org-keys.el Merge branch 'bugfix' 2023-01-01 13:15:12 -05:00
org-lint.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-list.el Preserve active region after structure edits 2023-02-04 16:49:54 +03:00
org-macro.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-macs.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
org-mobile.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-mouse.el Backport commit 920a7d38e from Emacs 2023-01-22 21:33:13 -05:00
org-num.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-pcomplete.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-persist.el Merge branch 'bugfix' 2023-03-14 14:51:57 +01:00
org-plot.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
org-protocol.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-refile.el org-refile: Fix edge case when we refile on top of the same subtree 2023-01-12 13:19:02 +03:00
org-src.el org-src--construct-edit-buffer-name: Fix docstring 2023-03-10 12:08:44 +01:00
org-table.el Do not assume that `org-string-width' preserves match data 2023-01-20 12:01:24 +03:00
org-tempo.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org-timer.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
org.el org-self-insert-command: Do not trigger folding checks 2023-03-15 15:18:23 +01:00
ox-ascii.el Merge branch 'bugfix' 2023-03-07 14:09:48 +01:00
ox-beamer.el lisp/ox-beamer.el: add labels to latex export 2023-02-10 13:55:18 +03:00
ox-html.el Merge branch 'bugfix' 2023-03-07 14:09:48 +01:00
ox-icalendar.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ox-koma-letter.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ox-latex.el Merge branch 'bugfix' 2023-03-14 13:21:28 +01:00
ox-man.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ox-md.el Fix LaTeX spelled as Latex 2023-03-07 14:08:40 +01:00
ox-odt.el Fix LaTeX spelled as Latex 2023-03-07 14:08:40 +01:00
ox-org.el Provide a uniform way to inform users about missing third-party packages 2023-02-17 17:09:23 +03:00
ox-publish.el Backport commit cae528457 from Emacs 2023-01-01 12:44:47 -05:00
ox-texinfo.el ox-texinfo: Fix invalid syntax in Texinfo version detection code 2023-02-17 13:30:16 +03:00
ox.el org-export-dictionary: Add Norwegian translations 2023-02-11 14:50:18 +03:00