From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 aDxaBjzB2GNvRAAAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 08:20:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gKJ4BTzB2GMepwAAG6o9tA (envelope-from ) for ; Tue, 31 Jan 2023 08:20:28 +0100 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 66DA4D263 for ; Tue, 31 Jan 2023 08:20:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMkvm-0004ah-0B; Tue, 31 Jan 2023 02:19:50 -0500 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 1pMkvk-0004aH-K2 for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 02:19:48 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMkvi-00038d-Kk for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 02:19:48 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 668BE24047A for ; Tue, 31 Jan 2023 08:19:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675149583; bh=sbE3fA8DCjlmg+gUy/6JDYfN75kgdUzGMS237VCHLII=; h=Date:From:To:Subject:From; b=jHlo2colztLBiGn5SaITQyhR2lcQ5PO9M6Je+TDDYAR/g5zCy5NUey7dbb8H/makC oAk8SEeg94NmEn/2HE/VVzOleq2QX/ntR0w37XY3MJBgVhkfvdQSlcYcj49iNNbIDp Wj1kHY/sqFudePcR5g3oZoq4/uFJPvp8rH5uAJFVkYZkBS3sRj3ePmAQ+7He4Ib5JV a5nFbn1R0tm0Zmm9k248qstrNp1SUKe3gYiXPc/HHT0eF0IAGBnR9hgV0V/6KNXPgK LodW5r20uwInPR6RJa6xBX2g2tGugVvVlABm4C1aXuk0gfU2LRGu3VMGjHdIFMZt6Y 9OkuZ9Hf2C31Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P5bz26rXvz9rxB for ; Tue, 31 Jan 2023 08:19:42 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_4d9c2c3d8b772e2163d239c6f87fda79" Date: Tue, 31 Jan 2023 07:19:42 +0000 From: gerard.vermeulen@posteo.net To: Emacs orgmode Subject: [BUG] Emacs-29.0.60: (setopt org-babel-load-languages ...) may cause warnings Message-ID: <712f2ef5b4edb2d9b565f6467e582030@posteo.net> Received-SPF: pass client-ip=185.67.36.65; envelope-from=gerard.vermeulen@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675149627; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+GNVxHES/BqCqCUWwUpuIY5O96RGuHTanJnh9Zc5f2E=; b=bbNR3FmWepPEUehv5k4kvZWtIHGWxuMt2fDRcJqi1I+0lltvbTdghoecgFyptPrBqMuUiU S0p+oLmxXvvm2pTWj1XDnC36G1SpbqYRk6blbC7cqXl+3qkaFp8UrsssLhkxFLuz0W4FN9 QqryR8l02B5VTSBQbUsGtfPtBb9NR1FltF/gpBtDEUVQcjLE4e67cNqMviSbvrDXS65jzx Od5U1UpTijc+vUJjuZ+KfvWAtAe0aQ8gS99eCuTCmDv/08K3jovSJqjP+CgwTd1UebAFg/ 9+Xy2nUjcKElp16fdJHcanmCFhEOj4IFaedZM4WsUEiPeQhL9haZS16UWE6xOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jHlo2col; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675149627; a=rsa-sha256; cv=none; b=h5yP6h5p+/QzEgewSH+uXgoPEQtjrIykkVFjOQoOFSWq1eElfE25EfRGNB9GrzYi+ftAeP PHjy0T+Uu2+W8f1yQi7uXRpPDoQ3Z2DLV3HnC0yUr+OdmmTnpo+RE8li7M4surAdWBG1gM MfmXlQQKwVZkwivUh+QW4KgA0LGeqflthYkPAJ5azbmqPwms7/9L83VTTZSCWpr8BDgQY8 Yp12cnP7K/qhGh8yJP2J+NSFwtTar0WU6NUOLgtXNpgA0MW43ctlezLSYBqFQnAmkx1peE eAN8F+i/ewg9ZV1hv8t2rb55XF8YVcgGAOKiL29K9u35C6WUT150btLlwlF8cQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jHlo2col; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn0.migadu.com X-Spam-Score: -10.14 X-Migadu-Queue-Id: 66DA4D263 X-Migadu-Spam-Score: -10.14 X-TUID: dlGKeoAxSIoL --=_4d9c2c3d8b772e2163d239c6f87fda79 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi, I have been replacing to calls to =custom-set-variables= with calls to the safer =setopt= (new in Emacs-29.0.60) and I discovered that calling src_emacs-lisp{(setopt org-babel-load-languages '((eshell t) (emacs-lisp t)))} raises a warning because =eshell= is missing from the =org-babel-load-languages= =defcustom=. The code below shows that this =defcustom= is quit out of sync with the rest of the code base: #+header: :wrap "src emacs-lisp :results silent :tangle no" #+begin_src emacs-lisp :exports both :results value pp :exports both (defun all-org-babel-execute-fns () "Find `ob-LANGUAGE' files in Org defining `org-babel-execute:LANGUAGE'. Return a list of items where the filename is the `car' of each item and the `cdr' of each item lists the `org-babel-execute:LANGUAGE' functions." (let* ((dir (file-name-parent-directory (locate-library "org"))) (names (directory-files dir t (rx "ob-" (+ print) ".el" eos)))) (cl-loop for name in names for found = (has-org-babel-execute-fn name) when found collect found))) (defun has-org-babel-execute-fn (name) (let* ((buffer (find-file-noselect name)) (base (file-name-base (buffer-file-name buffer))) (regexp (rx "defun" (+ blank) "org-babel-execute:" (group (+ graphic)))) (matches)) (save-match-data (save-excursion (with-current-buffer buffer (save-restriction (widen) (goto-char 1) (while (re-search-forward regexp nil t 1) (push (match-string-no-properties 1) matches)))))) (when matches `(,base ,@matches)))) (all-org-babel-execute-fns) #+end_src #+RESULTS: #+begin_src emacs-lisp :results silent :tangle no (("ob-C" "C" "D" "C++" "cpp") ("ob-R" "R") ("ob-awk" "awk") ("ob-calc" "calc") ("ob-clojure" "clojurescript" "clojure") ("ob-css" "css") ("ob-ditaa" "ditaa") ("ob-dot" "dot") ("ob-emacs-lisp" "emacs-lisp") ("ob-eshell" "eshell") ("ob-forth" "forth") ("ob-fortran" "fortran") ("ob-gnuplot" "gnuplot") ("ob-groovy" "groovy") ("ob-haskell" "haskell") ("ob-java" "java") ("ob-js" "js") ("ob-julia" "julia") ("ob-latex" "latex") ("ob-lilypond" "lilypond") ("ob-lisp" "lisp") ("ob-lua" "lua") ("ob-makefile" "makefile") ("ob-maxima" "maxima") ("ob-ocaml" "ocaml") ("ob-octave" "octave" "matlab") ("ob-org" "org") ("ob-perl" "perl") ("ob-plantuml" "plantuml") ("ob-processing" "processing") ("ob-python" "python") ("ob-ruby" "ruby") ("ob-sass" "sass") ("ob-scheme" "scheme") ("ob-screen" "screen") ("ob-sed" "sed") ("ob-shell" "shell") ("ob-sql" "sql") ("ob-sqlite" "sqlite")) #+end_src The attached patch synchronizes the =defcustom= with the rest of the code base, groups languages by org-babel file, and uses camel-case to spell languages (the new fashion). Best regards -- Gerard --=_4d9c2c3d8b772e2163d239c6f87fda79 Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=fix-org-babel-load-languages.patch Content-Disposition: attachment; filename=fix-org-babel-load-languages.patch; size=2151 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5kZXggMTk0N2M2M2E4Li5h MzQ3MWZmNjQgMTAwNjQ0Ci0tLSBhL2xpc3Avb3JnLmVsCisrKyBiL2xpc3Avb3JnLmVsCkBAIC0z MDIsNDIgKzM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QiIGxpbHlwb25kKQorCQkgKGNv bnN0IDp0YWcgIkphdmFTY3JpcHQiIGpzKQorICAgICAgICAgICAgICAgICAoY29uc3QgOnRhZyAi SnVsaWEiIGp1bGlhKQorICAgICAgICAgICAgICAgICAoY29uc3QgOnRhZyAiTGFUZVgiIGxhdGV4 KQorICAgICAgICAgICAgICAgICAoY29uc3QgOnRhZyAiTGlseVBvbmQiIGxpbHlwb25kKQogCQkg KGNvbnN0IDp0YWcgIkxpc3AiIGxpc3ApCisgICAgICAgICAgICAgICAgIChjb25zdCA6dGFnICJM dWEiIGx1YSkKIAkJIChjb25zdCA6dGFnICJNYWtlZmlsZSIgbWFrZWZpbGUpCiAJCSAoY29uc3Qg OnRhZyAiTWF4aW1hIiBtYXhpbWEpCi0JCSAoY29uc3QgOnRhZyAiTWF0bGFiIiBtYXRsYWIpCi0g ICAgICAgICAgICAgICAgIChjb25zdCA6dGFnICJPY2FtbCIgb2NhbWwpCi0JCSAoY29uc3QgOnRh ZyAiT2N0YXZlIiBvY3RhdmUpCisgICAgICAgICAgICAgICAgIChjb25zdCA6dGFnICJPQ2FtbCIg b2NhbWwpCisJCSAoY29uc3QgOnRhZyAiT2N0YXZlIGFuZCBNYXRMYWIiIG9jdGF2ZSkKIAkJIChj b25zdCA6dGFnICJPcmciIG9yZykKIAkJIChjb25zdCA6dGFnICJQZXJsIiBwZXJsKQotCQkgKGNv bnN0IDp0YWcgIlBpY28gTGlzcCIgcGljb2xpc3ApCisgICAgICAgICAgICAgICAgIChjb25zdCA6 dGFnICJQcm9jZXNzaW5nIiBwcm9jZXNzaW5nKQogCQkgKGNvbnN0IDp0YWcgIlBsYW50VU1MIiBw bGFudHVtbCkKIAkJIChjb25zdCA6dGFnICJQeXRob24iIHB5dGhvbikKIAkJIChjb25zdCA6dGFn ICJSdWJ5IiBydWJ5KQogCQkgKGNvbnN0IDp0YWcgIlNhc3MiIHNhc3MpCi0JCSAoY29uc3QgOnRh ZyAiU2NhbGEiIHNjYWxhKQ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