Ihor Radchenko <yanta...@posteo.net> writes:

> lin Sun <sunl...@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