Re: org-ditaa woes

2023-12-21 Thread Ihor Radchenko
Leo Butler writes: >> Writing a patch is also welcome. > > Here is a patch to the documentation. It documents currently > undocumented *features* of ob-ditaa. > > I have *removed* mention of work-arounds to execute scripts. I have also > taken the liberty of re-writing the two source blocks to

Re: org-ditaa woes

2023-12-20 Thread Leo Butler
On Tue, Oct 24 2023, Ihor Radchenko wrote: > Florin Boariu writes: > >> I can offer to try my luck with writing a patch for ob-ditaa.el, but >> I'm not knowledgeable enough (or have enough time on my hands) to >> actually keep maintaining it :-p > > Writing a patch is also welcome. Here is a

Re: org-ditaa woes

2023-10-26 Thread Leo Butler
On Tue, Oct 24 2023, Max Nikulin wrote: > On 23/10/2023 18:18, Florin Boariu wrote: >> >>> sh-5.1$ flatpak-spawn --host toolbox run /usr/bin/ditaa >>> /tmp/foo.txt -o /tmp/foo.png > > thanks > >> I really _need_ to generically execute a command. > > I hope, a couple of workarounds are still

Re: org-ditaa woes

2023-10-26 Thread Ihor Radchenko
Leo Butler writes: >> Writing a patch is also welcome. > > I am looking at ob-ditaa. Patching it looks within my reach. > > Is there no testsuite for it? No test suite. But you may refer to testing/lisp/test-ob-jave.el to see how to write simple ob-* tests. -- Ihor Radchenko // yantar92, Org

Re: org-ditaa woes

2023-10-26 Thread Max Nikulin
On 26/10/2023 02:00, Leo Butler wrote: I am looking at ob-ditaa. Patching it looks within my reach. Is there no testsuite for it? Unfortunately there is only a couple of examples at https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ditaa.html

Re: org-ditaa woes

2023-10-25 Thread Leo Butler
On Tue, Oct 24 2023, Ihor Radchenko wrote: > Florin Boariu writes: > >> I can offer to try my luck with writing a patch for ob-ditaa.el, but >> I'm not knowledgeable enough (or have enough time on my hands) to >> actually keep maintaining it :-p > > Writing a patch is also welcome. I am

Re: org-ditaa woes

2023-10-24 Thread Ihor Radchenko
Florin Boariu writes: > I can offer to try my luck with writing a patch for ob-ditaa.el, but > I'm not knowledgeable enough (or have enough time on my hands) to > actually keep maintaining it :-p Writing a patch is also welcome. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more

Re: org-ditaa woes

2023-10-24 Thread Florin Boariu
Hello, I hope, a couple of workarounds are still possible. 1. Get java command by adding bash -x (or /usr/bin/bash, or "/usr/bin/env bash") flatpak-spawn --host toolbox run bash -x /usr/bin/ditaa \ /tmp/foo.txt -o /tmp/foo.png - set `org-babel-ditaa-java-cmd' to something like

Re: org-ditaa woes

2023-10-24 Thread Max Nikulin
On 23/10/2023 18:18, Florin Boariu wrote: sh-5.1$ flatpak-spawn --host toolbox run /usr/bin/ditaa /tmp/foo.txt -o /tmp/foo.png thanks I really _need_ to generically execute a command. I hope, a couple of workarounds are still possible. 1. Get java command by adding bash -x (or

Re: org-ditaa woes

2023-10-23 Thread Florin Boariu
I heard everybody referencing "org-plantuml" several times here :-) I gave it a try, and, for reference, this is how my "org-plantuml" is being set up in my case: (org-babel-do-load-languages 'org-babel-load-languages '( [...] (plantuml . t) [...] )) (setq org-plantuml-exec-mode

Re: org-ditaa woes

2023-10-23 Thread Florin Boariu
On Sat, Oct 21, 2023 at 10:50:08AM +0700, Max Nikulin wrote: Does it work when executed from Emacs shell or eshell buffers? Could you, please, provide complete sequence of commands to generate a graphics file from a ditaa source for a shell running in Emacs? "M-x shell" and then: sh-5.1$

[TASK] Allow customizeable ditaa executable in ob-ditaa.el (was: org-ditaa woes)

2023-10-21 Thread Ihor Radchenko
"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 understand that part of code it still kind-of assumes that

Re: org-ditaa woes

2023-10-21 Thread Dr. Arne Babenhauserheide
Florin Boariu writes: > Replying to Arne's comment: > >> 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 understand that part of code it still kind-of

Re: org-ditaa woes

2023-10-20 Thread Max Nikulin
On 21/10/2023 04:39, Florin Boariu wrote:   $ flatpak-spawn --host toolbox run /usr/bin/ditaa --help Does it work when executed from Emacs shell or eshell buffers? Could you, please, provide complete sequence of commands to generate a graphics file from a ditaa source for a shell running in

Re: org-ditaa woes

2023-10-20 Thread Florin Boariu
Can you give us the command-line you would like to use? That would help to fix the problem you are confronting. A "regular" one would be just simply "/usr/bin/ditaa": --- $ ditaa --help usage: java -jar ditaa.jar [OUTFILE] [-A] [-b ] [-d] [-E] [-e ] [-h] [--help] [-o] [-r]

Re: org-ditaa woes

2023-10-20 Thread Leo Butler
On Fri, Oct 20 2023, "Dr. Arne Babenhauserheide" wrote: > Leo Butler writes: > [...] (cmd (concat "java " java " " org-ditaa-jar-option " " (shell-quote-argument (expand-file-name (if eps

Re: org-ditaa woes

2023-10-20 Thread Dr. Arne Babenhauserheide
Leo Butler writes: >>> [...] >>>(cmd (concat "java " java " " org-ditaa-jar-option " " >>> (shell-quote-argument >>>(expand-file-name >>> (if eps org-ditaa-eps-jar-path org-ditaa-jar-path))) >>> " " cmdline >>>

Re: org-ditaa woes

2023-10-20 Thread Leo Butler
Hello Florin, On Thu, Oct 19 2023, Florin Boariu wrote: > Hello everyone, > > I am not on the mailing list, so I'm hoping that some kind soul with > moderator powers will have mercy and let my email through in a timely > manner :-) Also, please CC me in on the answer. (I'll happily > subscribe

org-ditaa woes

2023-10-20 Thread Florin Boariu
Hello everyone, I am not on the mailing list, so I'm hoping that some kind soul with moderator powers will have mercy and let my email through in a timely manner :-) Also, please CC me in on the answer. (I'll happily subscribe if you feel that I should, but this is likely to be my only encounter