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 ms5.migadu.com with LMTPS id SNwTJwUhGGOrLAEAbAwnHQ (envelope-from ) for ; Wed, 07 Sep 2022 06:41:41 +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 6EsEJwUhGGMaXwAA9RJhRA (envelope-from ) for ; Wed, 07 Sep 2022 06:41:41 +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 F265C24EB1 for ; Wed, 7 Sep 2022 06:41:40 +0200 (CEST) Received: from localhost ([::1]:45688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVmsc-00060q-5w for larch@yhetil.org; Wed, 07 Sep 2022 00:41:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVms6-00060h-SL for emacs-orgmode@gnu.org; Wed, 07 Sep 2022 00:41:06 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:42748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVms4-0007tF-Rl for emacs-orgmode@gnu.org; Wed, 07 Sep 2022 00:41:06 -0400 Received: by mail-pg1-x536.google.com with SMTP id q63so12468458pga.9 for ; Tue, 06 Sep 2022 21:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=D+9+TWp7aLZIxyUKhoS/ByUP+5ttYUStZ8sY+lWmME4=; b=SIIT+w5pzhPdEkqgacUvCmAOEqJXJX3tNnFSsSMbWhd3jZ5QVfAigV4mYBWec10bdM ZFT18EUHxxX190xxuFWzO3BatE4v6x0eP7HHbRy/iczn3/uqPTVfO5Cb//P0Ipcg8UZJ qA5dcYMOfxugcbJJiHPbMcVEMwsxvcLsW7yAIQi2OHdxHzaeD16WK7hZH3JBb6lliej4 1YBaWeoUjc7YDfWHjEjm+Ub9n+lFHegDKqpMsD/PpAQRhVCRT4agMIh47UUpXrD/+gv0 Ad5Qzm8cu9SjKOjYfejQ6cpHwqgtmQxCE+1vPEf1/yIKuo6ebo12ANsXX7Z851v5sN4Q gKGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=D+9+TWp7aLZIxyUKhoS/ByUP+5ttYUStZ8sY+lWmME4=; b=25vnvIGPHEdbAI+ywd+YUWqhf77jkCLtFoHkkZ14bquLPaZqhivgPQoWi271OqPiVT ijw+pE3d0Zhh5MVBtAPV/Xkr+W441M+AHUgN/pZPiC9cbnaNU0nc5jagq4Og4bgTUGPq ABgXEBZrbECGXJzTKXfqLcqycGcxoHtbrhsDy/f9xEHmDeNWcuyijXRahqkKkFSwj2Zq CqoHC8j9zDlHlQLSUOZtsx03wGrBjYfNwG3RxIBDh/2vrqbkRTNJTLNjJ2Lj9WJuoTF3 FBUV3fvgChOiByRjQcZM3dxz4QSTVi6sP1tW69+KyieMnzFDYR4uLt0py+sGNyRRvuOw hS+w== X-Gm-Message-State: ACgBeo2ahwpYyXvptXgHOumcKrMRxQ+h5cMoKWylcsk+sYJQAWXc03K9 +pySqnnPedsC9ZQFTXC0XUE= X-Google-Smtp-Source: AA6agR5GAwVGTY2vC/TQvrATnWHlRDFo/TgUAfkRbiysxVrLE5oILuC2f/uo04iXRslT/2wpkKCtkg== X-Received: by 2002:a63:5715:0:b0:42a:d7a4:4c30 with SMTP id l21-20020a635715000000b0042ad7a44c30mr1773168pgb.525.1662525663054; Tue, 06 Sep 2022 21:41:03 -0700 (PDT) Received: from localhost ([2409:8a70:2b2:5800:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id n21-20020a17090a929500b0020036e008bcsm6611375pjo.4.2022.09.06.21.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 21:41:02 -0700 (PDT) From: Ihor Radchenko To: Tim Cross Cc: Org-mode Subject: Re: org-babel-load-languages usability issue In-Reply-To: <86bkru0xim.fsf@gmail.com> References: <86fsh61a3u.fsf@gmail.com> <877d2ivxpa.fsf@localhost> <86bkru0xim.fsf@gmail.com> Date: Wed, 07 Sep 2022 12:41:54 +0800 Message-ID: <87illzaj8t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=yantar92@gmail.com; helo=mail-pg1-x536.google.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=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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662525701; 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=D+9+TWp7aLZIxyUKhoS/ByUP+5ttYUStZ8sY+lWmME4=; b=YAUeigzQdkwRsAlxAGhO7JeGKa96Ol84OsFhsL9EhAIerc50NmbroKgGtcP0vFMNw1JerQ Z/tVMmQXl/a9FDe50pqHP+cUtgeEYAzvXokT1nnyRrDHnDq+NZiS0BZ4SUhmAW7bhb5ECE y9lFY/hNhib4wOi7EjRLYeKYdxdySC5udpZ/i8VE4M0hr1dvrhEwAi+8AM8mwXBz4cCiu6 OtlLawTyF0pAsTWYd5PV2JffGIPZ+WiyRSZtXK/cJr+OQEcglYatml2ET64MxVLyWgoBEi FBKXsDkAEVlZIWr63EWMSBwKDr4RmdgjkE1xarNDaikOI0HuJgurMjTYh/VA9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662525701; a=rsa-sha256; cv=none; b=kTHDspRcAKyzhpl1yO7Sej41tO2cg73wIg52ACvkhA67ukCENtryjBJk140r/XH+Z878fN +v+vU9Dl7yMCHnCD85RhSrOYnfjdUfizU6p4B5N+a4yfhrSAOD5i8pb58jctn5er3ONBcR 8snMSOCnNIFzKE4478ER7DbYu/KQ54ZqrbsqRKQeoY3XfiavtVhdW489MTULfPslypOCCJ r604qAutsKC2nDCWjJmOrQ6bjH/kKy+Ng62mjD25JuRHL/QVuAs/6ThmqFEhDGQwU3fJ40 7PnorHHzV/W5W0YifrjZJli5hXXKRt5Aq1pDJrmOYZ0EAKZszYSwZ1eig3O6jA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SIIT+w5p; dmarc=pass (policy=none) header.from=gmail.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-Migadu-Spam-Score: -3.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SIIT+w5p; dmarc=pass (policy=none) header.from=gmail.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-Migadu-Queue-Id: F265C24EB1 X-Spam-Score: -3.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: CWlJRlT1qGJN Tim Cross writes: >> Well. There are actually languages below if you look into the source >> code. Indeed, it is confusing in the help/customize buffer. We can fix >> this, say, by adding the language list into the docstring itself. Though >> it will not cover third-party ob-*.el modules. > > Maybe only add/list those languages 'bundled' with Emacs or perhaps just > add a link to the worg page listing all the supported languages. I'm > reluctant to add the list to the doc string as it will make it even > longer and there will always be the issue of it not being current as > languages are added/removed (I find doc string drift out more than code, > where people tend to update/fix code more readily). We have [[info:org#Languages]] linking to https://orgmode.org/worg/org-contrib/babel/languages/index.html I guess we can simply add the manual link to the docstring. Would it be sufficient? >> The primary goal of this variable is reducing startup time. Loading all >> the 44 built-in babel backends would be slow. > > Would it load them if the default values for all the languages which > have bundleed modes in Emacs were set to nil rather than t? I am not sure if it is a good idea. I am now looking at the usage of org-babel-load-languages in the code, and I am seeing `org-lint-wrong-header-argument', `org-babel-demarcate-block' ignoring difference between (lang . nil) and (lang .t). -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92