From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eK7XOCOeu18kRQAA0tVLHw (envelope-from ) for ; Mon, 23 Nov 2020 11:33:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GMDFNCOeu18XUgAAB5/wlQ (envelope-from ) for ; Mon, 23 Nov 2020 11:33:55 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A87739402D6 for ; Mon, 23 Nov 2020 11:33:54 +0000 (UTC) Received: from localhost ([::1]:57968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khA6R-0006fe-Ue for larch@yhetil.org; Mon, 23 Nov 2020 06:33:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khA5T-0006dw-HY for emacs-orgmode@gnu.org; Mon, 23 Nov 2020 06:32:51 -0500 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:40423) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khA5R-00079z-K4 for emacs-orgmode@gnu.org; Mon, 23 Nov 2020 06:32:51 -0500 Received: by mail-io1-xd34.google.com with SMTP id r9so17723023ioo.7 for ; Mon, 23 Nov 2020 03:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UuCWIymDytqYYdutpVMnSkJd27vRyBngoExeFsRetps=; b=ZQOefVQa5VmVMKGPiUvfwwC9PWUMaZyTWOur0oPPvkRQYpqAi7770taNutsL2TfLqc mIHtR6hQf8r2dLK1x4h7acecP2RtxtyNgVsq4VmLe8vFNaAAukCCbq3iZnSO8MIu+TNo aWWqeMNlyOCopCGJn8o9M6uYxmFIPu0vCtOw0HrMPYa6vzj3T/G+nZ3Jh7FURvfyZ0k8 Gekwm0u/srldvXqVmji89YcWqvzet4jj0AymrZg5k427pV6KQczAqZye8/eCXxTGEaY6 XZJ9vqk59JLuUxzNDfg8vAsMvkKiPJMFo93E5oAAdnK9NjSK48M6LrqVynLoZfmRxpVY gVKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UuCWIymDytqYYdutpVMnSkJd27vRyBngoExeFsRetps=; b=GWXRontZMTYblwUoc5Jo/QHIFQWk/IIlIl9xmvYApE/W4Mv6oi0G33g/YK9iLubH+z OnZFofDGHpRDTpbbeyQDAdmDczaJM6RABhDkrkuhJRxitVNXzC2G+lT+lh5Q4vuCVA1W CNhqh6rMBERRwzX4CbUh+8M2wJqQ272u3lD7nrydoX6MnPDJCgJudUSGeQzG/3LjY+Q9 RO/HdUTk1/hviUHQkJh2WEd5veL3WDnta3CTGQ9wVJrhVexukAUxGhj09WbBo3sdHQUF uqDqtye2BEnrvKZkaj8O4Q1YXFVq+zKrJ+m+w8Vlu4Bi8MMv0p8xosU59e1mxQ4xfsg9 PoQw== X-Gm-Message-State: AOAM533eX1eYrTjsEWL3LpRfeiVt+BsSjdPwT17BL3h0cGea1HGLV5yM DdobexN0amsIoOo05DT5yQDTkvKpJ3jmjgBIEg== X-Google-Smtp-Source: ABdhPJx5x8MPfLswL/RgTQhU6CajlxrF1uuhAJaDFlyvYhH1mTOlOJ/+3uvySQ0nNgUglrcNeGR0fLy635eX+PYeLj4= X-Received: by 2002:a6b:600a:: with SMTP id r10mr1069902iog.143.1606131168310; Mon, 23 Nov 2020 03:32:48 -0800 (PST) MIME-Version: 1.0 References: <5d8d7ed3-5d6a-d24a-f569-2933604ec657@gmx.at> In-Reply-To: <5d8d7ed3-5d6a-d24a-f569-2933604ec657@gmx.at> From: Immanuel Litzroth Date: Mon, 23 Nov 2020 12:32:12 +0100 Message-ID: Subject: Re: buggy plantuml function To: Heinz Tuechler , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d34; envelope-from=immanuel.litzroth@gmail.com; helo=mail-io1-xd34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZQOefVQa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: CJlDNjwNSeqK There is a solution in all source blocks that would have a problem because there is a * at the beginning of a line. Just prepend it with ,. So this works over here: #+BEGIN_SRC plantuml :file test.png @startmindmap ,* Debian ,** Ubuntu ,*** Linux Mint ,*** Kubuntu ,*** Lubuntu ,*** KDE Neon ,** LMDE ,** SolydXK ,** SteamOS ,** Raspbian with a very long name ,*** Raspmbc => OSMC ,*** Raspyfi => Volumio @endmind #+END_SRC Of course I also had to change org-babel-plantuml-make-body (defun org-babel-plantuml-make-body (body _) body) to make that work with "C-c C-c". Weren't there supposed to be maintainers for this stuff? Has no plantuml maintainer been found? Immanuel On Mon, Nov 23, 2020 at 11:28 AM Heinz Tuechler wrote: > > Immanuel Litzroth wrote/hat geschrieben on/am 15.11.2020 13:27: > > (defun org-babel-plantuml-make-body (body params) > > "Return PlantUML input string. > > > > BODY is the content of the source block and PARAMS is a property list > > of source block parameters. This function relies on the > > `org-babel-expand-body:generic' function to extract `:var' entries > > from PARAMS and on the `org-babel-variable-assignments:plantuml' > > function to convert variables to PlantUML assignments. > > > > If BODY does not contain @startXXX ... @endXXX clauses, @startuml > > ... @enduml will be added." > > (let ((assignments (org-babel-variable-assignments:plantuml params))) > > (if (string-prefix-p "@start" body t) assignments > > (format "@startuml\n%s\n@enduml" > > (org-babel-expand-body:generic body params assignments))))) > > > > expands to assignments if the body starts with @startmindmap? > > Immanuel > > > > Dear Immanuel, > > did you ever receive an answer to your post? I ask, because I am > curious, if you were able to use mindmap in a #+BEGIN_SRC plantuml / > #+END_SRC block? For me it was not possible with *, because they get > interpreted as org headlines and break the SRC block. > > best regards, > > Heinz > -- -- Researching the dual problem of finding the function that has a given point as fixpoint.