From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iLqZD1OLQ2RBXQAASxT56A (envelope-from ) for ; Sat, 22 Apr 2023 09:22:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wBaXD1OLQ2RSDwAA9RJhRA (envelope-from ) for ; Sat, 22 Apr 2023 09:22:59 +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 D06D81F0D6 for ; Sat, 22 Apr 2023 09:22:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pq7ZR-00026H-8T; Sat, 22 Apr 2023 03:22:09 -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 1pq7ZP-00025v-To for emacs-orgmode@gnu.org; Sat, 22 Apr 2023 03:22:07 -0400 Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pq7ZO-0007Qu-2W for emacs-orgmode@gnu.org; Sat, 22 Apr 2023 03:22:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682148123; bh=gbavCjzTM0CrgDytDAAu0ONWg4PXZog4eeNDC9BYshA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From:Subject:Reply-To; b=CLPJYMmlsqJSWeav3rqX8lPFaIZM9YEkN3spMOCBivATTHF0Qn2rUIGvyWWzTtGO58ozso1uhuXzNo8Aivp/TE+1H5CoVC0ajvZEwx7j4f9y9y9JLuDmRYeMCiWulekvny0ZWiihmMrHrk0jaSGsZ2MydGCpDVK3lzTc9zM7p49VM7FUCfRjcCpW+K6uJiULeCOLCZzbHYwT+lHEAWZZv4xYZdBawR4aP+KNk+P0lZ7B+lGubVYZdVZpIiySciKyE6hzNuxjf5s8cRg/19Yf4BuOFZOwKmP0L2sQiEgjcSSPxEXk0TFsMmztqErs6LYv8rbbG57b7GnOKrW5Yz/poA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682148123; bh=MxGxO2oMlagUCU2dxoAAehj5iWjoFAUHaTZ7OlgDz06=; h=X-Sonic-MF:From:Date:Subject:To:From:Subject; b=LFk3XCAivjII4FGKHZvxATqB30kI5Af2m02bDb0YoLZZigRgfpYk3MnRy+41yj6ZubJtpVGMEwxfRhFCOK0wmVbnZDEOMlYe05mgV4lFgvjTD/iuFvtGzoh3LzelAdfbU9vBA97WSjbh0kHJryViMmd7PhHIEcnx2Ifd03rBj5WB9OeQgKd9BhVp1WMc+tRbFOVmQNl+sVQyZ4uAg/svHfMNiyeyvv3VX9u2HPcv1uRKkKoUXJyqkkYXJz31fflsjWWHDhm4SOgKYkACHocSMUu1BLa8AjHmbAsASs9lcTlboB9S2O79w5DDceMDQ1QrgbY8kZSXWfELYGytmi0VwQ== X-YMail-OSG: l2MFh.0VM1md28NKIu3jbxXqxZDme1ZPLkaTquljsbmHzqTbhhtUASase7DQCz3 7ZTR2sXW4Wd2cpTNcJbA_T.ahvG8OpA3AnjMaUfCl_s6gjZJQ9D2htHWaX_TM04l1zVe9ZsBfC1_ Eyeqixow8CDX7pHgPREOz9KBoWwZyyr8X7v307vzaY2rGQwWSdsI7rOsIIOeMANdCSgctOZjCROx I9GkU56Jb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8f-8177-b3e06bbefccf Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 22 Apr 2023 07:22:03 +0000 Received: by hermes--production-ir2-74cd8fc864-rnn7v (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 88c9c56212fded2b28dacc9e2e452e17; Sat, 22 Apr 2023 07:21:58 +0000 (UTC) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-504ecbfddd5so3572794a12.0; Sat, 22 Apr 2023 00:21:58 -0700 (PDT) X-Gm-Message-State: AAQBX9fm16jsNabdSrU3Ygwrknvh4DU1bvuLndbaVR0rnrtQ8N/ktNgZ lx4/OsPHwDCxIU4y6alOwUKuZ3dTaxpMIiyDRPY= X-Google-Smtp-Source: AKy350bBLg/zfxiqapj9mbQT7wVzPrwDBU713IOLP10v5WhVtNETnRltCENZQkecF6h90YbEByYim9/sEwTKjdxgqF0= X-Received: by 2002:a17:906:3287:b0:94e:c40a:cca9 with SMTP id 7-20020a170906328700b0094ec40acca9mr4364556ejw.35.1682148117049; Sat, 22 Apr 2023 00:21:57 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: lin Sun Date: Sat, 22 Apr 2023 07:21:45 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: [PATCH] before emit an error message, try to load the babel language To: "emacs-orgmode@gnu.org" Cc: Timothy , Bastien Guerry Content-Type: multipart/mixed; boundary="000000000000fa222405f9e7a0d1" X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=sunlin7@yahoo.com; helo=sonic310-23.consmr.mail.ne1.yahoo.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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: , 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=1682148179; a=rsa-sha256; cv=none; b=j05gmE4Oqeux8l4McJZfXaDb8n2Sw8s4kVw9pjCaVd92umyit3ESwAg0HgQZBbVrXcJgbf GVpR93gh0KsujiBHz+NFyNA1Su8h4Qkie0a7hkPlw30McimQj/W2aOBRHge99F5L7qdv3t Opp2F9f+LTmI/AG1KgLumocu0ieu9Gezo/KbITOlw/5AiV45s9x+GOdVBLzCJQ+uUKrku7 QOeL345JCs0GDaUiDF3Xrv7lGFNL2o3drc/EBmJhjhdUpcoT4tDce43MQ3rqZR1LUeKgnU 9mZRFZhTPGgHrFMcG/00ez8XWc3rWJEqBlM79lzESJstgUrQUrPzzioOs754tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=CLPJYMml; dmarc=pass (policy=reject) header.from=yahoo.com; 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=1682148179; h=from:from:sender:sender: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:dkim-signature; bh=gbavCjzTM0CrgDytDAAu0ONWg4PXZog4eeNDC9BYshA=; b=X8lyp5H2Ehxka5ziPB3VqEJeYWfXeTXGN/ubIFYthzhnvZK5+xMBkInY0sISXA45tvcOHL CkLDWKHrUURnnU2F6EvLBe6srLXSJEsabwlKVpi4gpdW5JhWxGq7hYqq0Bp4LfvPywahI5 I7Ncgq7RAJowV1+2qOwSQsMpNDDE4/FpEutV3gn9HHcOEI1jV3UY5fJfGaGzNitN+o1UZ/ 3ODs+j8mb7DxrpK3GkXsGA+JwNSazTw43PWjs0vCuw+kwfVaPClyqjjk90jw4Ao8gRcm7k 8/FLZw5dOGXAPgQusuhi/wtSEcWiRbtMhQhs7LMZiF7muce1VhvRZSTLuloKTQ== X-Migadu-Spam-Score: -8.54 X-Spam-Score: -8.54 X-Migadu-Queue-Id: D06D81F0D6 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=CLPJYMml; dmarc=pass (policy=reject) header.from=yahoo.com; 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: lzlL25E9dKL1 --000000000000fa222405f9e7a0d1 Content-Type: text/plain; charset="UTF-8" Hi, The function `org-babel-execute-src-block' will emit an error message if the language is not loaded. Before the error message, the patch will give a try to load the associated babel language. Why does the language exist in the `lang org-babel-load-languages' but not be loaded? Because the `org-babel-load-languages' are defined as a customer variable with :set 'org-babel-do-load-languages, the ":set" function can only be triggered with function `custom-set-variables`. While setq/cl-pushnew `org-babel-load-languages' won't trigger the `:set' function, then the error message will be displayed if I run the code in the org file. Please help review that patch. Thanks. Regards --000000000000fa222405f9e7a0d1 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-lisp-ob-core.el-load-lang-in-org-babel-execute-src-b.patch" Content-Disposition: attachment; filename="0001-lisp-ob-core.el-load-lang-in-org-babel-execute-src-b.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lgrnjpai0 RnJvbSAzOWExNWEzNGJkYjhiZDBjMzk3ZmJkODBjZGZiMDcyM2NlMjI5MDY2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBT YXQsIDIyIEFwciAyMDIzIDAwOjAwOjM5ICswMDAwClN1YmplY3Q6IFtQQVRDSF0gKmxpc3Avb2It Y29yZS5lbDogbG9hZCBsYW5nIGluIChvcmctYmFiZWwtZXhlY3V0ZS1zcmMtYmxvY2spCgotLS0K IGxpc3Avb2ItY29yZS5lbCB8IDQgKysrLQogMSBmaWxlIGNoYW5nZWQsIDMgaW5zZXJ0aW9ucygr KSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2xpc3Avb2ItY29yZS5lbCBiL2xpc3Avb2It Y29yZS5lbAppbmRleCA0NzE4ODdhM2EuLjJlZDRmNmI1YiAxMDA2NDQKLS0tIGEvbGlzcC9vYi1j b3JlLmVsCisrKyBiL2xpc3Avb2ItY29yZS5lbApAQCAtNzk1LDcgKzc5NSw5IEBAIGd1ZXNzIHdp bGwgYmUgbWFkZS4iCiAJCSAoY21kIChpbnRlcm4gKGNvbmNhdCAib3JnLWJhYmVsLWV4ZWN1dGU6 IiBsYW5nKSkpCiAJCSByZXN1bHQgZXhlYy1zdGFydC10aW1lKQogCSAgICAodW5sZX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