From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +BSkCOfsFWNIMgAAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 14:34:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uCubCOfsFWNbzgAAauVa8A (envelope-from ) for ; Mon, 05 Sep 2022 14:34:47 +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 C1DF528344 for ; Mon, 5 Sep 2022 14:34:46 +0200 (CEST) Received: from localhost ([::1]:60464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVBJN-0007DL-Vr for larch@yhetil.org; Mon, 05 Sep 2022 08:34:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVAkO-0007ET-GV for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 07:58:38 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:33751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVAkM-0006PA-NB for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 07:58:36 -0400 Received: by mail-pf1-x42d.google.com with SMTP id y29so8473879pfq.0 for ; Mon, 05 Sep 2022 04:58:34 -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=54qGVnCVWPpPKFAmH1RhRckU4TBmW5pLzHsJhVaNWsU=; b=My7YDIv8VVZ7d+Dv+JKInrl0qINsImUfgUFS9r6h1aoLtcYe5wF9J4rJWdeGmz8F5Z F2FIpFDYJGajyFEEun2OaU1m5DXICb5iW3CTXUJICh+rHkyzkpNfXYpGV8x3rSeOuPbA TT0CcQq0+q0hxFkiTuJnClqGxPsgfu7tQPC/yYsVh9Phq06wE+vq50hTqucavLUFswV5 1m+H+vaA07MiafbyDwTxNRgsce5p9H9uW4GbUlPeGNeAU5WexEzvQUex86MlW2smGEMD araXKRoPoo7UWEA1mboIn7e0vrrKnKHGOxNg5WGlqUFMMUssSwkA9mwuillLiFBOrHHM 8dgw== 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=54qGVnCVWPpPKFAmH1RhRckU4TBmW5pLzHsJhVaNWsU=; b=e5DRjdyNPiFrT6/bPrw+rMqCDiMk+NC+imL+D12h9kmULZYSX5lXZxuRcQvFZEe3lj EKeBjqqiB2KbjXc5nIgo/yBZbLkpWu8jWWPQgXsL1c81rIgwyeauOmSppwj3ayhilRGX WLDMJBykaJUk6Klg3K8iOeB7Ks/zRf8w2sDGlzEtuBTGUqkxyGzReXjIjAJZt2ayyLPR jN47CQKTgxa3lnl6W28KrLq/rifFYdyDO6npNOoXK9jzZF3RITKsLf3YNU4qng0xk/20 JymawDlw6Ff/hI84FLK2P7iFwqVT60ltA5T7ZiiPSw9i1AaIrJog0Hh2E7wFXeC3xcBQ tDnw== X-Gm-Message-State: ACgBeo0fK9GljZqrsyQVR+OanqGWgzN3ZypVViua+DDEIZSKEuAcJt9p KK594D7hN0tGWQDPIIjX+fs= X-Google-Smtp-Source: AA6agR7RlumPmEBdYeMRER94UBMCVR1fudpU21AMalxSa9V5qdA4WSLfbgcjl3sQ/QSQsejYHlcBng== X-Received: by 2002:a63:9142:0:b0:42b:5a50:7119 with SMTP id l63-20020a639142000000b0042b5a507119mr41407520pge.445.1662379113113; Mon, 05 Sep 2022 04:58:33 -0700 (PDT) Received: from localhost ([2409:8a70:2b2:5800:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id n125-20020a634083000000b0042b5095b7b4sm6334190pga.5.2022.09.05.04.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 04:58:32 -0700 (PDT) From: Ihor Radchenko To: Tim Cross Cc: Org-mode Subject: Re: org-babel-load-languages usability issue In-Reply-To: <86fsh61a3u.fsf@gmail.com> References: <86fsh61a3u.fsf@gmail.com> Date: Mon, 05 Sep 2022 19:59:29 +0800 Message-ID: <877d2ivxpa.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42d.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=1662381286; 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=54qGVnCVWPpPKFAmH1RhRckU4TBmW5pLzHsJhVaNWsU=; b=oddMhnVadCv9trFW0fL5oTZjAMtgTpgOI4c9u+k5Xyt5le+Tr+AMbsPeS6BLqWvzEVcaMV qOh1V0J8D6lb2E24MT4yvDisbpwp9dN48YFC37E/WyWCsvwmXqEhJWYxgCuu8lDGYJ+2d/ FzDMyLK9jjIxiwCu0zAS5pd4RD+BhrM/Z3s65hC7r9S6GIn9ZrGmVGqkHO2wlrqLfMYzP8 FGUpcsKe1xS8hXHtGxxNHOx47LhpRH7q0Kwxt6Cneh7sx5W/JqzVBd0lNmc5wyys+CNj7k MqVakHxJpBuJRS67wTj9fVfmMU1p2fktbd9iZzAHTGnSwcajAj6kxB0AbGkd9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662381286; a=rsa-sha256; cv=none; b=nPojhpUPamAGZiTgZfHStcHIIQUKJOd4vPE2+Qz4QWIPsgDQJANXHKdijYNOdrdI62P+NL mNyqbsfsp5j9iSwtTpOem9CWp76H29ebQ3ubm+9BRl1VXgWaOoN7Kf1BhKsfc8G8seTxDy TXw2MxWRlWm48zT/GvYVLL+DY1jENkAMbKNlxwoaXI5HeFj/jYQCb1K2h1MwVq8O+UERY/ tqesuThwCxifs9URb9tVIwQku507aC1vFWKeaWVk7AhsRoZM11YyK6P33svo6fyoiPSyN8 AleoZ33dIsiXH2N8bPhg7U8IhI2+FYkc4wIklH6KKJUKdCDSsceANzevf4PsXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=My7YDIv8; 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: -1.77 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=My7YDIv8; 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: C1DF528344 X-Spam-Score: -1.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: M7f4lBoVpXZd Tim Cross writes: > I'm not sure when the definition of the variable > org-babel-load-languages changed, but I think we may need to consider > either reverting it or making some other adjustment. > > Originally, this variable was an alist of languages and a boolean > indicating whether the language should be loaded e.g. > > '((emacs-lisp . t) > (clojure . t) > (sql . nil)) > > which would load emacs-lisp and clojure, but not sql. However, the > default value for the variable now appears to just be > > '((emacs-lisp . t)) Are you sure? '((emacs-lisp . t)) is the default value in the commit that introduced this variable 12 years ago: 6e469f4afba4bf7d6e8983d1e4f3e981252f8f60 Author: Eric Schulte AuthorDate: Fri Jul 2 11:32:38 2010 -0700 babel: `org-babel-load-languages' activates code blocks by language > This has two consequences. The first is that the doc string for the > variable is now incorrect. It states in part > > "This list can be used to load support for any of the languages > below. " 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. > There are no languages listed below. This also leads to the > next issue. How does a user know what languages are supported and can be > enabled? Previously, you had a list of all the supported built-in languages - > most of which would be disabled (nil) by default. However, this did make > it easy to know what languages are supported - you could use customize > to change the flag from nil to t (or copy the default into your init > file and modify appropriately. Now it doesn't seem to be as clear. The (incomplete) list is actually available in cutomize interface. Of course, we can still improve the docstring. > Note also that the doc string refers to the variable as a list, when it > is actually an alist (association list). This could be confusing, > especially for new users. The doc string probably should describe the > format more precisely i.e the CAR of each con cell making up the > alist is a language syumbol e.g. emacs-lisp and the CDR is a boolean > that will be 't if the language is to be loaded or nil otherwise. . Agreed. > Should the default value for this variable be a list of all the > supported babel languages which are bundled with emacs, all of which set to 'nil' to disable them > except emacs-lisp (to maintain existing semantics, though I do wonder if > we should also enable eshell given we enable emacs-lisp by default > because all necessary dependencies are provided by emacs, as is the case > with eshell)? The primary goal of this variable is reducing startup time. Loading all the 44 built-in babel backends would be slow. -- 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