From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8JhnKP66/GL6+QAAbAwnHQ (envelope-from ) for ; Wed, 17 Aug 2022 11:55:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YDKCJ/66/GI+fQAAG6o9tA (envelope-from ) for ; Wed, 17 Aug 2022 11:55:10 +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 38064353AB for ; Wed, 17 Aug 2022 11:55:10 +0200 (CEST) Received: from localhost ([::1]:41548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOFlV-0005P2-7u for larch@yhetil.org; Wed, 17 Aug 2022 05:55:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOFh8-0005Dd-Be for emacs-orgmode@gnu.org; Wed, 17 Aug 2022 05:50:46 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:40885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOFh6-0001BV-0X for emacs-orgmode@gnu.org; Wed, 17 Aug 2022 05:50:37 -0400 Received: by mail-pl1-x635.google.com with SMTP id x23so11572311pll.7 for ; Wed, 17 Aug 2022 02:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=XeaVh0OwOMxdUhxEdLp73YgLVjYmTmNI/gnWdMqcrSE=; b=mTJapgenlOrJi5ezJjoPI21ETBpuSa4VU8MTA7l1L8UGET8Ue2GZYEx9itikyfdSnK R/CZ0CuIl5yE1RpjLn1Wjzfx6kvoSxSLxf7eOBf+248lcVkNDwtX7h0dM3o4n+Dby8z2 RqNKhkZupgnViBNRfNWuNHwuAepM7M+5apWHSCInZm+nlfgA+pLF7eyB9y7I7rBQNYSG 5he23wg5fY9B+CeiIBX6r0u7lphOFVOIcWJBfK9SyHKWJIsz1rI8fX+bshxDlMJeRwDp zoa9kxAZFMJgBItjVRYHe32Zxi1HNK9txYWA7YkHOSSi0ETrs7dRbvBm15JaaD9xMgMs dGsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=XeaVh0OwOMxdUhxEdLp73YgLVjYmTmNI/gnWdMqcrSE=; b=njIY3tMumyg6yIkEzytfEHfxUisIoZa1O4UlfVi7RWkTyTGjrd0gWpe/wDaqGof/tC EA9NaBwnlEhfewhs6ll6LU6B8kGbe3bOqCssVzp5rgOndw9NFbwAvKx7ZSjZCU9ljDpW 0zHn2S4rtSnVjFvretzldTt1M5Tpn8LOsI860T8CcnCou6R8GRqCWMJ3bFWCd3Ta7leh o9L7hN3EFdVZkxMlNPGGhRfEBbw+4MvmOIfYF2898zAxiYUqd/3KHzoBeXj7rkQF//mV /x6FX6mdTOAEwExCrzw/o5jJT9jrz4tRTC8ZFocU4q3qg4kpHGzeLBTR8wvjDGLxT56H +qjw== X-Gm-Message-State: ACgBeo14itgADZDnXOHxZqKZJZAZs6z0LueMPzX9gQkpkGhg5z03j396 MRtdwdbFgxbfu7pvULq0GAU= X-Google-Smtp-Source: AA6agR4NERxKhB0VcrsPa2CfIXxRWLW/81Wj7zPy7O3xaNdDy1MSbIVfw8I7TFj2ikihmdFNvGfRuA== X-Received: by 2002:a17:90a:c402:b0:1f2:ca71:93a5 with SMTP id i2-20020a17090ac40200b001f2ca7193a5mr2952169pjt.34.1660729833543; Wed, 17 Aug 2022 02:50:33 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id v4-20020a17090a0c8400b001f6c86e6ff0sm1068548pja.36.2022.08.17.02.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 02:50:32 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com Cc: "Fraga, Eric" , Bill Burdick , emacs-orgmode@gnu.org Subject: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?) In-Reply-To: <62fc0be2.050a0220.306c1.e3baSMTPIN_ADDED_BROKEN@mx.google.com> 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> Date: Wed, 17 Aug 2022 17:51:37 +0800 Message-ID: <8735dv19li.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=yantar92@gmail.com; helo=mail-pl1-x635.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1660730110; h=from:from:sender:sender: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:dkim-signature; bh=XeaVh0OwOMxdUhxEdLp73YgLVjYmTmNI/gnWdMqcrSE=; b=rArb1TAzl8A2rYmsWHiyfciflXd4hlvoTiJ9tj1egO6tnsUEBe9lApYkblusDA3CzIRDXC ZozG24I2iipF601VvkvhMT62hbCZOSpx8TfYDYEjhuptXqs60HS4cJP+yBBK6WyChRzpRJ mwm8F1x0k2/ussFCZWW6vGfEX2VBh3eOUtX/KiHkqty4d8E6BSb25wjRd3oqnuIeN5k+Gm CH1t1wgZksq/AQnWwii/JGnC0FyiaBN+NWMHjuczNPMPbkFtNzuDvLMZzuFxrsvMJ3YJjR PNm3lsW/0btvwLVNe/3YXnTSdfUugT87ia6CKJdtPklDnl6I97/eYCZhAGO2Bw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660730110; a=rsa-sha256; cv=none; b=pIrUt0voSARjQlKODQTmj/gGlh6sGpMCW/fij+mP4CCUwl5Hj/WkdxzpqiphJX3phRFKhS jzDNqm83miuiTT7cIf23YNyO3H29jGNOSewwn42oekmneS0QuMgbhxQktdkaJ1ndtuPSw9 gMoZJfMt7N1n7MhhDbsb7awiyrV3mX0vCj1b9n50YID+q+Sm47CBOa+YU1gtxhCHAjEQvW m/i/P5FiKK8f08f7vJceyx2gfxo0MIykpvo+Yu3b2d3152besJVoJPSULCvrXYuN5OcvyM /UQ01/44cZLfmCrYh325jEK2pM424Jb/jWsbgq61RvKqStpGcyOycJtZ9cK9rQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mTJapgen; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mTJapgen; dmarc=pass (policy=none) header.from=gmail.com; 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: 38064353AB X-Spam-Score: -0.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: R9GlcwvEiAE/ "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. Patches are welcome! -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92