On 09/10/2025 17:09, Rudolf Adamkovič wrote:
(defun org-babel-plantuml-make-body (body params)
"..."
(let ((match (string-match
(rx (zero-or-more (or whitespace control))
(group (minimal-match (zero-or-more anything)))
[...]> (string-join
(remove "" (list (or pre-body "")
(or start-keyword "@startuml")
In this thread I have seen various approaches like "immutable"
variables. On the other hand I have heard that Emacs as a text editor
optimized for in-place modifications using buffers. That is why I am
curious if `with-temp-buffer' may be more efficient (and if it might be
more convenient than multiple regex groups).
It seems the file has no maintainer. I would consider adding comments
with a couple of code examples to demonstrate what kind of
transformation is expected.
As to current vs. legacy preprocessor question from an earlier message
in this thread, if it is a recent transition (around a couple of years),
perhaps, a defcuston may be introduced for users who have plantuml
installed from repositories of Linux distributions.