From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aDV1GvW5u1/4QQAA0tVLHw (envelope-from ) for ; Mon, 23 Nov 2020 13:32:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aF+GFvW5u1/4MAAA1q6Kng (envelope-from ) for ; Mon, 23 Nov 2020 13:32:37 +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 D5DA3940363 for ; Mon, 23 Nov 2020 13:32:36 +0000 (UTC) Received: from localhost ([::1]:56078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khBxL-0004pk-Kz for larch@yhetil.org; Mon, 23 Nov 2020 08:32:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khBkj-0008OA-5N for emacs-orgmode@gnu.org; Mon, 23 Nov 2020 08:19:33 -0500 Received: from mout.gmx.net ([212.227.17.21]:39711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khBkd-0004Q9-8K for emacs-orgmode@gnu.org; Mon, 23 Nov 2020 08:19:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606137563; bh=ATMs4WVE3gIJ1L9TfM8x7dAJij4TGNZLsVdgAacXtXI=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=DMicH8tATvD7ZZChmwoOj5bKNpV7Rs/Xj03MGhBdwcR6GjJZdWeVqM+NODxs2BhJd 44y4a/+W/ak1ko1UCQEmJmJa7ErpjeA5fYbkhY637C77uQJ6ERq0+8Xs9fh+KaFNkT kjbvaQ1bGiZIaGev9QUgl6a/idW3UezWSv9bDayo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.102] ([188.23.209.215]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5GE1-1kHVZG0o4b-0119FS for ; Mon, 23 Nov 2020 14:19:23 +0100 Subject: Re: buggy plantuml function To: emacs-orgmode@gnu.org References: <5d8d7ed3-5d6a-d24a-f569-2933604ec657@gmx.at> From: Heinz Tuechler Message-ID: <61cd8296-75d4-05b1-0c33-ad039cacdc67@gmx.at> Date: Mon, 23 Nov 2020 14:19:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:vD+9mZ4MQek6CXbOoeAWymSh0T3RX/0RSF8SbXmctPAJ5NHUOnZ NYj7qbSrIO33cYw7rOT4Lts52sOJqpyJ8FgasVJPsBxItTzJQrL0PmnQVWlZPtfV2plLX+w 0ICD3LdwEauE8w0k/fNXdI7aLxY9/Un6c8rcC2fXrMvCghODe0Kl+pWtdgJ1MaJQQCe06qP sGyCo/KkfKQNTl0g9NtRA== X-UI-Out-Filterresults: notjunk:1;V03:K0:2+grWM+HVok=:6QVvfdbbDsVp6Q+N6wIZPW PeknRxEoD3dJlvpctAJGjhNq16S4NxXUCPBtHK0GD2ovhpOVezH2VuUwRNS+do9hKgqRKVegE gQtjTLeG5fiX9Bglef87SDTRjUe983+FHdQSXqIr+zPEwmO7kLQTxH0g2KEttYuOn4fO7KOA8 rYWnpbCUad4FKwtxh6aSPhLsRvFnu/Hz2dYzPrrpiAwf/ikZ3ctvCQqxA6FPfaS0MWhOGWR/y ercX7G1XEPLtwd280pQBnTwOSDLVsOKbU+ed9/1f1a3pdVyA6iyRpFJZ6XYWtzbpFGV8zY3sr rYa3RRYjy3Mccj09i07E+EKRXvMwcXyRPw4ItliPJsjspaFi8XLJ86pyxdJvGGaoGiQR0CilN oOlq8HbDAnyxYBLAM7tSMIYXWJpl/q3INxKOvv0bKorCacUTqaA2JYyfIgQUKoqp7RcZmNh8N m5mXrJX8ic5sQ/TaM1yHgwt9BrPWYatoIf8GtmOj2tmMkgun7u213q/g0Xi5FS/YTx9QVGQA/ 1+n1+khb8YYTSPIIZ3jlJrhMNbHYJQ1Dby2jibX4Q1vR+7JekuOfYT7bWgjrhBClUxa8+x5lu vCXvKutlz2FMcxROv5O2CWjlWgyVl1jRgP8OVF2BNv3ReFH/TPd4Sh4EzxPdPP1DSCXkfJBXV oR0i/bVeIQc2ot7bMSRP3KJwqjhal0oNBQob2EZB1UWgWIkCdSnfTiI5UPgaVf0pQrT9bvqy1 +F54HyacBHpvrsCSrAYW4kxWsOwKxDjRbBu1mns150gG7STcD4KqZw2GViFMk+LYyrXit8TCH ZPWCYrLnJQHFbxpgBRo9hK6kpCazaLDjT2OhpaU4e8CExLYBAAiL4pUt6qy+FHmt6RED+xeZJ Mq3X3KHJaHPCR1lmG7dw== Received-SPF: pass client-ip=212.227.17.21; envelope-from=tuechler@gmx.at; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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=gmx.net header.s=badeba3b8450 header.b=DMicH8tA; dmarc=none; 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.21 X-TUID: UNDjqhRYG5FI see inline Immanuel Litzroth wrote/hat geschrieben on/am 23.11.2020 12:32: > There is a solution in all source blocks that would have a problem becau= se 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 =3D> OSMC > ,*** Raspyfi =3D> 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 > Thank you for this very useful hint. I had no idea, how to search for that solution. Regarding your change of org-babel-plantuml-make-body, I don't know what you mean. Your example works for me without any change I would be aware of= . Heinz > > > 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 >> > >