From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UNpGDA9e/WJNLwAAbAwnHQ (envelope-from ) for ; Wed, 17 Aug 2022 23:30:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sOoXDA9e/WJchgEAauVa8A (envelope-from ) for ; Wed, 17 Aug 2022 23:30:55 +0200 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 B9728133CC for ; Wed, 17 Aug 2022 23:30:54 +0200 (CEST) Received: from localhost ([::1]:43966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOQcn-000287-HP for larch@yhetil.org; Wed, 17 Aug 2022 17:30:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOQbd-00027y-Pa for emacs-orgmode@gnu.org; Wed, 17 Aug 2022 17:29:41 -0400 Received: from [39.171.214.252] (port=14617 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOQbc-0008KR-0H for emacs-orgmode@gnu.org; Wed, 17 Aug 2022 17:29:41 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 6851B5F3503A; Thu, 18 Aug 2022 05:29:31 +0800 (CST) References: <87pmhag3ua.fsf@ucl.ac.uk> <87y1vy1yyz.fsf@ucl.ac.uk> <87iln14mlz.fsf@localhost> <87bkstzigt.fsf@ucl.ac.uk> <87fsi4efqr.fsf@localhost> <87ilmsqrjv.fsf@ucl.ac.uk> <87mtc41fzt.fsf@localhost> <87k078w4tu.fsf@ucl.ac.uk> <62fc0be2.050a0220.306c1.e3baSMTPIN_ADDED_BROKEN@mx.google.com> <8735dv19li.fsf@localhost> User-agent: mu4e 1.8.6; emacs 28.1 From: "Christopher M. Miles" To: Ihor Radchenko Cc: numbchild@gmail.com, "Fraga, Eric" , Bill Burdick , emacs-orgmode@gnu.org Subject: Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?) Date: Thu, 18 Aug 2022 05:25:25 +0800 In-reply-to: <8735dv19li.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.214.252 (deferred) Received-SPF: softfail client-ip=39.171.214.252; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660771855; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=ftYD1prOIoKxInnBcy5yXMyJwuQDYglDr6k8NrIU1w4=; b=rpgYCwGdDmfoXvBpzBs4MTnmPR/UExjf2h99hE1H9t2P4wUUYy0InhhQ3F6Ky/eUeDW0Cn /71HxWu7Adj3lqgSo/N3FbUWZhBI5jFnTZrpqQAmWbfJcUEqXrH4sMa5xnCnJjJap8XJtT d/VO+lbI9uEWSRi5bAvQ0/DJj0JyjG+1Lhj9kxZXJycmUmbwSoiHPueeM4kOr/aXKdIH76 PnRxFouSq0EvFkyyoseUIOn+UraZqRJWyzcx7lgzEJolGPf8SE6aF4zcHpCWg/LptWk6Ys U/i7oG6eLZztwuQU0WmZHG28rOf9798y62WlYcm8vKcFoXuA1yS4W1vGYEN1Ug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660771855; a=rsa-sha256; cv=none; b=SPcubo/Da+V0azrpWgh+NEV7DP8lNT9dzTL6Q93r/U/JdAcuCRwU3kyxsJJQFVWxuGoPZ7 UwyLkaENwKJhjKsArfobdkA9vY4D7qese4CEniaLe3EU8pSXPpmFkVBOsiuW/f6PiJ6NT6 x4hWzp7OnPBq+1ZDXcfqM7TglpI+WScHoF+qZC0VEF9GKe3IqjMKRW9hM+EtJL7nuM3YrA PliTj/kpaPvaoFcmjWTsT/hL+sLCIbU3lrEm0PWYq6g2IRqjmnv+hrPIbLa1+Z+g170Lst yBjD5Atd9p8NEpUWvkk88hUecPB/eHouf9wGZU4Y1Aw1NFygLoJZgnugHuBqpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.74 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B9728133CC X-Spam-Score: 4.74 X-Migadu-Scanner: scn1.migadu.com X-TUID: zHW0UpHoTnfC --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> What about write a elisp function to automatic the installation of those >> required two Julia packages? If not, at least raise a warning for user >> to install those two packages after detection not exist. WDYT? > > Installation is not a good idea because there are multiple alternative > package managers in Emacs. Some of them explicitly require user to add > code into init.el (I am referring to straight.el). > > However, we may, indeed, show some helpful warning/message. > > A reasonable place to implement such message is org-load-modules-maybe. > It might catch the relevant errors and show the message. I found ~org-load-modules-maybe~ load modules from ~org-modules~, it's a list of ob-* or ol-* elisp modules. Not Julia modules. I searched ~org-load-modules-maybe~ function invocation code in org-mode source code, have not relative examples. Don't know how to use ~org-load-modules-maybe~ to detect whether Julia modules exist and raise helpful warning message. > > Patches are welcome! =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmL9XbcACgkQG13xyVro msNYawgAv6X8ajj/gv7GjRoptJnH70zsZCnLiOpYgLB97X5oS9GwJniFXd2AcKSM 2lCtjj++tzmpIV6W/D9y08KZpw8Aks66rkUXLNe8akp5Goi0JyRAGhxPbSLdK3BN Z0AGZdLQd6oZ1ezwg6+2tYTJP3oqUFp7zeKFxB6HHc9WkH65P/X/sPiw3PpfjdfQ U/WwIprO7tLwgHbhYidauraFMUpMGpRDutqJfQIsrf4bdVdeiGJcGybT1ym275Tl Dp1ZSp+wKCL6PeGKsqJymuopKdw8uelTPUOIzYgbbrLgL1gngxwAvVStSZyQO4rz CzIyvzDI4GVAXCC09YcRs1r4qbbYBQ== =CMF7 -----END PGP SIGNATURE----- --=-=-=--