From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ENGVGsPQbGF7agEAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 03:41:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WDA0FsPQbGHgNQAA1q6Kng (envelope-from ) for ; Mon, 18 Oct 2021 01:41:23 +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 B38272BDBA for ; Mon, 18 Oct 2021 03:41:22 +0200 (CEST) Received: from localhost ([::1]:52810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcHeR-0004lt-RE for larch@yhetil.org; Sun, 17 Oct 2021 21:41:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcHdO-0004lg-Oa for emacs-orgmode@gnu.org; Sun, 17 Oct 2021 21:40:15 -0400 Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:41545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcHdM-0001CN-67 for emacs-orgmode@gnu.org; Sun, 17 Oct 2021 21:40:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634521206; bh=kYTpKh2u7JQ1090oW7QsaW81enV5vs6hygmcnmxO2Lo=; h=Date:From:To:In-Reply-To:References:Subject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by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Oct 2021 01:40:06 +0000 Date: Mon, 18 Oct 2021 01:39:45 +0000 (UTC) From: Sun Lin To: "emacs-orgmode@gnu.org" , "bzg@gnu.org" Message-ID: <814986024.4009146.1634521185498@mail.yahoo.com> In-Reply-To: <388850760.3644614.1634354740816@mail.yahoo.com> References: <388850760.3644614.1634354740816.ref@mail.yahoo.com> <388850760.3644614.1634354740816@mail.yahoo.com> Subject: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml to html MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4009145_2001144855.1634521185497" X-Mailer: WebService/1.1.19116 YMailNorrin Received-SPF: pass client-ip=66.163.186.206; envelope-from=sunlin7@yahoo.com; helo=sonic310-25.consmr.mail.ne1.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634521282; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kYTpKh2u7JQ1090oW7QsaW81enV5vs6hygmcnmxO2Lo=; b=o5mQnFH7Pj2AvcDIDWsZh8SxMz8uhdr6kYB/3352sSkPdBAa5e3Nlh0mlwwl9v66T6Lxw6 gxOmKwaL+dWxX6H8zeknHz4bBrlV6YEErrWq3XyjmHC08zGA0KZTO2tCGSQMKPFleSvgkh Ne5aXcA1MxEJuvnh1zi8YIKHU6I/DQvl1v7DySw0Avnv2SDAIDRFi2b8DGoNTCPJs4crmJ 9zyGX3j1HX9BLRN1b7Q1KCI7HMXDAHeaM4Lw26+qOT9FrgzILMY9WEKjLSMAgaXKxY617e 5pV28qcndbFc9n62hnJw2yBCj431E2u+hvGdt21iudEObA1mpquTl9LRcWdb/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634521282; a=rsa-sha256; cv=none; b=pjTl3nmv6jI0AdRNCbSrHSu3rb3hx9G2OIaCiEU4ouQgBQa2bRqwU5epKHZijrUvFouzFH Zb8sKGXBYzhPpYpRqidEwggXCTM2tXqkxOfjHD6yoVY9kW1V5uNioPNzzjUGpXagky+PlY P1KKnUknmL5X0Tysft1KuVD8vwxF/iC10Py6wwB/v5afQIfKyxRVp9DgzlfqCp1I6AJbok zVh+iewb/w3UBfm23AfkfGJDzx7YJvIlYFWq734jRFI0FPfc646pSM9hnER9GrL/64Pih/ jw8IcGYU+8ANjbL8ibaLSgx/aXjjUiMNfXycA/ea2OTFQRNmY4O5DVXretkCVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=uf1VEFwV; dmarc=pass (policy=reject) header.from=yahoo.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-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=uf1VEFwV; dmarc=pass (policy=reject) header.from=yahoo.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-Migadu-Queue-Id: B38272BDBA X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: pvNie2UON+NM ------=_Part_4009145_2001144855.1634521185497 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi=C2=A0Bastien, Please help to review this patch. Thanks Best Regards Lin Sun ----- Forwarded Message ----- From: Sun Lin To: emacs-orgmode@gnu.org Sent: Saturday, October 16, 2021, 03:25:40 AM UTC Subject: Subject: [PATCH] Fix DISPLAY error on exporting org with plantuml = to html Hi, When the environment variable "DISPLAY" is invalid, exporting plantuml bloc= k in org will got error message: Exception in thread "main" java.awt.AWTError: Can't connect to X11 window s= erver using 'localhost:11.0' as the value of the DISPLAY variable. =C2=A0=C2=A0=C2=A0=C2=A0at sun.awt.X11GraphicsEnvironment.initDisplay(Nativ= e Method) ... To reproduce this issue, install the plantuml.jar and make sure it work ins= ide org-mode. Then open `/tmp/testing.org` and=C2=A0 input follow plantuml code and eval-= expression `(progn (setenv "DISPLAY" "localhost:90")(org-html-export-to-htm= l))`. The root cause is org-mord execute the plantuml.jar in command line without= headless parameter, then plantuml will try read the DISPLAY, it's unnecess= ary. (For standalone plantuml, `org-plantuml-executable-args` has default value = '-headless' to avoid reading DISPLAY). Please help review the patch. Thanks. Best Regards Lin ------=_Part_4009145_2001144855.1634521185497 Content-Type: text/x-patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Fix-DISPLAY-error-on-exporting-org-with-plantuml-to-.patch" Content-ID: RnJvbSA1ZTA0YTgwMDY5MWIwNGVkZDk0MGRkMTI0OTg3MzM2ZjZmMzBkZDYyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxsaW4uc3VuQHpvb20udXM+CkRhdGU6IFNhdCw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