emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Christopher M. Miles" <numbchild@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: numbchild@gmail.com, "Fraga, Eric" <e.fraga@ucl.ac.uk>,
	Bill Burdick <bill.burdick@gmail.com>,
	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	[thread overview]
Message-ID: <m2czcyd0eg.fsf@numbchild@gmail.com> (raw)
In-Reply-To: <8735dv19li.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]


Ihor Radchenko <yantar92@gmail.com> writes:

> "Christopher M. Miles" <numbchild@gmail.com> 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!


-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  parent reply	other threads:[~2022-08-17 21:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08 15:19 :session for Julia in org babel? Fraga, Eric
2022-08-08 15:49 ` Bill Burdick
2022-08-08 16:28   ` Fraga, Eric
2022-08-08 16:51     ` Bill Burdick
2022-08-08 17:36       ` Fraga, Eric
2022-08-09 12:39       ` Ihor Radchenko
2022-08-09 12:53         ` Fraga, Eric
2022-08-09 12:54           ` Bill Burdick
2022-08-10  7:10           ` Ihor Radchenko
2022-08-10  7:56             ` Fraga, Eric
2022-08-16 12:52             ` Fraga, Eric
2022-08-16 13:21               ` Ihor Radchenko
2022-08-16 16:06                 ` Fraga, Eric
2022-08-16 21:16                   ` Christopher M. Miles
     [not found]                   ` <62fc0be2.050a0220.306c1.e3baSMTPIN_ADDED_BROKEN@mx.google.com>
2022-08-17  9:51                     ` Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?) Ihor Radchenko
2022-08-17 11:45                       ` Show a warning/message when loading Org modules requiring external packages Fraga, Eric
2022-08-17 21:25                       ` Christopher M. Miles [this message]
     [not found]                       ` <62fd5dc7.050a0220.96139.b7e7SMTPIN_ADDED_BROKEN@mx.google.com>
2022-08-19  6:02                         ` Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?) Ihor Radchenko
2022-08-19 12:58                           ` Christopher M. Miles
2022-08-20  5:56                   ` :session for Julia in org babel? Ihor Radchenko
2022-08-22  9:30                     ` Fraga, Eric
2022-08-22 12:12                       ` Ihor Radchenko
2022-08-17 10:16 ` Timothy
2022-08-17 11:50   ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2czcyd0eg.fsf@numbchild@gmail.com \
    --to=numbchild@gmail.com \
    --cc=bill.burdick@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).