From: Ihor Radchenko <yantar92@gmail.com>
To: Joseph Turner <joseph@breatheoutbreathe.in>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH v2] lisp/ob-plantuml.el: Insert results in buffer
Date: Fri, 05 Aug 2022 13:15:23 +0800 [thread overview]
Message-ID: <87zggjnudw.fsf@localhost> (raw)
In-Reply-To: <20220803190245.26056-1-joseph@breatheoutbreathe.in>
Joseph Turner <joseph@breatheoutbreathe.in> writes:
> When :results header arg is set to a value that doesn't include
> "file", insert txt output in buffer below src block.
This looks reasonable. Thanks!
> - (let* ((out-file (or (cdr (assq :file params))
> - (error "PlantUML requires a \":file\" header argument")))
> + (let* ((do-export (member "file"
> + (split-string (cdr (assq :results params)))))
Let's take this opportunity and fix another omission in ob-plantuml.
:results may generally contain Elisp sexps to be evaluated and the whole
split-string busyness is not accurate. Please use :result-params list
instead of :results.
Also, can you please update the ob-plantuml documentation according to
the changes made. The current version is in
https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-plantuml.html
You will need to create a patch against
https://git.sr.ht/~bzg/worg/tree/master/item/org-contrib/babel/languages/ob-doc-plantuml.org
repo.
Best,
Ihor
next prev parent reply other threads:[~2022-08-05 5:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-03 19:02 [PATCH v2] lisp/ob-plantuml.el: Insert results in buffer Joseph Turner
2022-08-05 5:15 ` Ihor Radchenko [this message]
2022-08-05 20:10 ` Joseph Turner
2022-08-06 8:19 ` Ihor Radchenko
2022-10-30 6:23 ` Ihor Radchenko
2022-10-31 6:02 ` Ihor Radchenko
2022-10-31 19:20 ` Joseph Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zggjnudw.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=joseph@breatheoutbreathe.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).