Formatting worg code examples (was: Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el)

2023-11-15 Thread Max Nikulin
On 09/11/2023 10:17, Leo Butler wrote: diff --git a/org-contrib/babel/languages/ob-doc-ditaa.org b/org-contrib/babel/languages/ob-doc-ditaa.org-#+BEGIN_EXAMPLE +#+NAME: hello-world.org +#+BEGIN_SRC org :exports code :results replace +,#+NAME: hello-world +,#+HEADER: :exports results ,#+BEGIN_S

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-13 Thread Leo Butler
On Sat, Nov 11 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> And even if we do want to add certain features in future (like >>> supporting ditaa executable herein), it does not mean that we have to >>> rush them by any cost. >> >> Ihor, I don't understand that sentence. >> >> The *docum

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-11 Thread Ihor Radchenko
Leo Butler writes: >> And even if we do want to add certain features in future (like >> supporting ditaa executable herein), it does not mean that we have to >> rush them by any cost. > > Ihor, I don't understand that sentence. > > The *documentation* patch was intended to show that ob-ditaa did

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-11 Thread Ihor Radchenko
Leo Butler writes: > I am glad we agree. Now let me tell you my dilemma: a while ago, I > suggested a patch to implement similar functionality for ob-maxima. The > patch used customization variables, much like ob-plantuml does. Ihor's > feedback was that this was not a good approach (too much roo

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Leo Butler
On Fri, Nov 10 2023, Max Nikulin wrote: > On 10/11/2023 10:19, Leo Butler wrote: >> On Thu, Nov 09 2023, Max Nikulin wrote: >> >>> diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el > [...] >>> should allow to set :java to >>> >>> flatpak-spawn --host toolbox run /usr/bin/ditaa >>> >>> withou

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Leo Butler
On Fri, Nov 10 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> While I was reviewing the documentation, ob-doc-ditaa.org, and the >> source, ob-ditaa.el, I realized that there is a simple way to run a >> script file instead of a jar file. The documentation patch includes such >> an example

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Max Nikulin
On 10/11/2023 10:19, Leo Butler wrote: On Thu, Nov 09 2023, Max Nikulin wrote: diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el [...] should allow to set :java to flatpak-spawn --host toolbox run /usr/bin/ditaa without abusing of org-ditaa-jar-path. Untested. Doesn't this abuse the `

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Ihor Radchenko
Leo Butler writes: > While I was reviewing the documentation, ob-doc-ditaa.org, and the > source, ob-ditaa.el, I realized that there is a simple way to run a > script file instead of a jar file. The documentation patch includes such > an example. Org cannot support every possible feature. And ev

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Ihor Radchenko
Leo Butler writes: > [fn:1] (Aside: `org-plantuml-executable-args' should be `org-plantuml-args'; > Ihor missed it when he made the change in commit b5f0efc049). Now fixed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5c82e1e1d -- Ihor Radchenko // yantar92, Org mode contrib

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-09 Thread Leo Butler
On Thu, Nov 09 2023, Max Nikulin wrote: > On 09/11/2023 10:17, Leo Butler wrote: >> While I was reviewing the documentation, ob-doc-ditaa.org, and the >> source, ob-ditaa.el, I realized that there is a simple way to run a >> script file instead of a jar file. > > > It is better to avoid obstacles

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-09 Thread Max Nikulin
On 09/11/2023 10:17, Leo Butler wrote: While I was reviewing the documentation, ob-doc-ditaa.org, and the source, ob-ditaa.el, I realized that there is a simple way to run a script file instead of a jar file. diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index fa864c7bc..4a2b09cd9 100644 ---

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-08 Thread Leo Butler
On Sat, Oct 21 2023, Ihor Radchenko wrote: > "Dr. Arne Babenhauserheide" writes: > In my current source I see [...] (use C-h v org-babel-ditaa-java-cmd to see the value of the java executable — you can then customize this to use a different command) >>> >>> As far as I unders