[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Show a warning/message when loading Org modules requiring external p
From: |
Christopher M. Miles |
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 |
User-agent: |
mu4e 1.8.6; emacs 28.1 |
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
signature.asc
Description: PGP signature
- Re: :session for Julia in org babel?, (continued)
- Re: :session for Julia in org babel?, Fraga, Eric, 2022/08/09
- Re: :session for Julia in org babel?, Bill Burdick, 2022/08/09
- Re: :session for Julia in org babel?, Ihor Radchenko, 2022/08/10
- Re: :session for Julia in org babel?, Fraga, Eric, 2022/08/10
- Re: :session for Julia in org babel?, Fraga, Eric, 2022/08/16
- Re: :session for Julia in org babel?, Ihor Radchenko, 2022/08/16
- Re: :session for Julia in org babel?, Fraga, Eric, 2022/08/16
- Re: :session for Julia in org babel?, Christopher M. Miles, 2022/08/16
- Message not available
- Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?), Ihor Radchenko, 2022/08/17
- Re: Show a warning/message when loading Org modules requiring external packages, Fraga, Eric, 2022/08/17
- Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?),
Christopher M. Miles <=
- Message not available
- Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?), Ihor Radchenko, 2022/08/19
- Re: Show a warning/message when loading Org modules requiring external packages (was: :session for Julia in org babel?), Christopher M. Miles, 2022/08/19
- Re: :session for Julia in org babel?, Ihor Radchenko, 2022/08/20
- Re: :session for Julia in org babel?, Fraga, Eric, 2022/08/22
- Re: :session for Julia in org babel?, Ihor Radchenko, 2022/08/22
Re: :session for Julia in org babel?, Timothy, 2022/08/17