emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] before emit an error message, try to load the babel language


From: Ruijie Yu
Subject: Re: [PATCH] before emit an error message, try to load the babel language
Date: Tue, 25 Apr 2023 22:30:32 +0800
User-agent: mu4e 1.9.22; emacs 30.0.50

Ihor Radchenko <yantar92@posteo.net> writes:

> lin Sun <sunlin7@yahoo.com> writes:
>
>> Thanks for the comment.
>> If we switch to the `add-variable-watcher', it seems we'll load the
>> ob-LANG in the callback immediately.
>> The previous change can lazyly load the babel languages until the user
>> tries to evaluate the source block.
>
> Is there any advantage doing the loading lazily?
> I can only see disadvantages:
>
> 1. `setopt' already triggers loading when variable is set. It is just
>    `setq', often used in place of `setopt', that does not trigger
>    loading/unloading.

Speaking of which, since we now (or are about to?) depend on compat, we
can just do (require 'compat) and forget that `setopt' is an Emacs 29
addition.

-- 
Best,


RY

[Please note that this mail might go to spam due to some
misconfiguration in my mail server -- still investigating.]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]