From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0ERYAaLkR2SXTgAASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 16:33:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WAVRAaLkR2SlJQEA9RJhRA (envelope-from ) for ; Tue, 25 Apr 2023 16:33:06 +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 96B9C3B8AE for ; Tue, 25 Apr 2023 16:33:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prJiK-0000W0-DG; Tue, 25 Apr 2023 10:32:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prJiI-0000UC-Tl for emacs-orgmode@gnu.org; Tue, 25 Apr 2023 10:32:14 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prJiH-0006Va-3Z; Tue, 25 Apr 2023 10:32:14 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id ca0f01c7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 25 Apr 2023 14:32:09 +0000 (UTC) References: <388850760.3644614.1634354740816.ref@mail.yahoo.com> <388850760.3644614.1634354740816@mail.yahoo.com> <87k0h5gbad.fsf@gmail.com> <1410400175.3014347.1637221629433@mail.yahoo.com> <147485378.6546620.1638236479358@mail.yahoo.com> <87czmiqnmh.fsf@gmail.com> <115088871.6596146.1638252307206@mail.yahoo.com> <877d5sszc2.fsf@localhost> <87354suluu.fsf@localhost> <87cz3vhwj7.fsf@localhost> <87zg6ws7li.fsf@localhost> User-agent: mu4e 1.9.22; emacs 30.0.50 To: Ihor Radchenko Cc: lin Sun , Timothy , Bastien Guerry , emacs-orgmode@gnu.org Subject: Re: [PATCH] before emit an error message, try to load the babel language Date: Tue, 25 Apr 2023 22:30:32 +0800 In-reply-to: <87zg6ws7li.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz 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, 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: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682433185; a=rsa-sha256; cv=none; b=XZK282vHLO4V0wOvv0lJeCvc3wz3yu62ZNIL28edENQGOXyXfZ3SpssE+Ap1Dza30WAq/8 SguPj8aZZoN48NbRX0dfBxTHl0ZSOFNPVAe5iK0q3K/e1WN98k/X289c5IE692CHvyUQVt Co5t+ILzwGQ+k+O+M7mPujiFE0FBbpG0+tHjoAl/jENvq9vnpUcSV9T4iUJRDJYCQLztHG RF7npt7z4073LI9Qu2o9aJScWovwShAjZWy0XoBYVexfN0o+pQA54DqgBG0uQQRPMqglbR qoCKUZOsI0wSagfeDaBwwah/HlTpz7DsjJLfkNuLmNZfDDvMUu0MUY1Kp4+t2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682433185; h=from:from:sender:sender:reply-to: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; bh=cbfYz2Tx1/ncRB2iWmDCgTta+sakdCqhEQN40dT7r50=; b=Ir2zfBu0N6Ft1uCNjuQY5qtBKZGxf8DFxzjkcDYguVz2wuqQpX4/aNwCjQLDyf7FLJ7ow+ B2befXTBODacOTP+KFXhEb19caJNlSpgbWngXZNiB8C4sPwHnwlObB8yGPHCujWrpM0Beo A8U5QVP5DHy+W6JxMwbCuFWvZdbQfJNXKy6oBjRp6l03ksIro39juroHSWILbOgHmyImVQ RFjLS7KSNd2uZChsCIoZzTQ6ZPu4NuvLAokrorFgTb74didPGf4nTwLMLGnEsX07UHJ0oz 7iYcvBD9nbmxa8OBlnPjp8J5EHeLxjqE5VZpdIKj/eYhAu1lLWNgWOp5z1oekQ== X-Migadu-Spam-Score: -4.01 X-Spam-Score: -4.01 X-Migadu-Queue-Id: 96B9C3B8AE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-TUID: 4Y6kBx1fb5oT Ihor Radchenko writes: > lin Sun 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.]