From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uDfOFFFk3WGNYQEAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 12:04:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kGhVEVFk3WFGMwAAauVa8A (envelope-from ) for ; Tue, 11 Jan 2022 12:04:49 +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 A28BA1B9DA for ; Tue, 11 Jan 2022 12:04:48 +0100 (CET) Received: from localhost ([::1]:57400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7ExL-0006ZV-GN for larch@yhetil.org; Tue, 11 Jan 2022 06:04:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7EwJ-0006Z6-N7 for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 06:03:43 -0500 Received: from [2607:f8b0:4864:20::102b] (port=41532 helo=mail-pj1-x102b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7Ew9-0001Qw-Je for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 06:03:42 -0500 Received: by mail-pj1-x102b.google.com with SMTP id b1-20020a17090a990100b001b14bd47532so5223502pjp.0 for ; Tue, 11 Jan 2022 03:03:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=WLK1LfAFC60ntnB7dW8sDHmU7ClPQPGJvs8zl3oxzFQ=; b=pbn4tIrvwJqI5kyNKDEGGSPzRyqZsJlBEyxjetxi8xQQudPtmB4BsnqCiK2hVJXzQM zSLspIbRvPQD7km3sLTyHyO+QKCxavN89gI/zRUd5Jmx4c35Zb3d9eCckJEETHhheP8L 76A/6DH9sjLa5xJzd5trSinuNWvExs9RS44QvQcWOUA/qrI/u7sxalmmB9Z+GHSWFMNd bwEkx5kPopnF7WOBg/llvpG31yD1tszm8+DghatkfuhTkYZaC3Uurd7wjbLL/bMIwRTt 7MaXaljcoWnDHtO8GBwnu48krb0JOuhN1PidFSvg6aHFgG/cC7T3+ibc/EtIEL041k3F sDIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=WLK1LfAFC60ntnB7dW8sDHmU7ClPQPGJvs8zl3oxzFQ=; b=qR/29wKViu7OG2IPet89l6gS7WT0+EfPnbNlEnJPi+8ZYPz4Q3Dg3pT5Bm7ZaDxbKK yVerHStifdEW2P2zv5zTHVwY66hOUgv6RAJ7UngZnUqyCSDT28e31dNfh64xfCtmpAZo nionNrTFQd8YBuOnwPBg5AkSKEe5Wtp2reVW2r/WjLJ7HHbz/0xvArwU2NOE0MnSjXXq hCBvyvBC51OkjMqX0UmiQM/yrxV9j5kJrbYpN6A9Pr9bS1L/rOLDWqGzBPIhgvUj4g7u AOC/u9x1VLdv0KXOtxhze8sxmyqCVsjwoWuEnSQLCfRKyHOmYoLiYDMZ/OLmnESEDjGF 5PLg== X-Gm-Message-State: AOAM530C3v3nB76zn/D9n3J4d0WVkbMOxGAz9z+afTu6FiJZZOfRTGXI oD0cQ2fEwJV8JDJ/L3hRQNEty8Owx0ctJA== X-Google-Smtp-Source: ABdhPJzHBtMrNvbuwk3E/L2VTa/iSdZInM5qTz++MvS5VMOV1pSrKtmzEG2M6Z6Bs9bQJddDHQ/w2A== X-Received: by 2002:a63:9d86:: with SMTP id i128mr3625681pgd.526.1641899009706; Tue, 11 Jan 2022 03:03:29 -0800 (PST) Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id om3sm2094173pjb.49.2022.01.11.03.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 03:03:29 -0800 (PST) From: Allen Li To: emacs-orgmode@gnu.org Subject: [BUG] ob-tangle overrides user customization of org-id-link-to-org-use-id [9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elpa/org-9.5.2/)] Date: Tue, 11 Jan 2022 03:03:28 -0800 Message-ID: <808rvm4jr3.fsf@felesatra.moe> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=darkfeline@felesatra.moe; helo=mail-pj1-x102b.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641899088; 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=WLK1LfAFC60ntnB7dW8sDHmU7ClPQPGJvs8zl3oxzFQ=; b=X2dNskm5QRk0jbp45KMPphIvdk2EcRcddawdxJX1E3p42dzGBh9XzKj5xn123jinAYmOT1 qSseSAcwI4lcljj64VLkPisncfWGIZkkPEfx8tPuoG1iKuTV80zWeFrA6MAhOq5S4QQfSz hcKybWwMWXi1y+aG7gUlH0LfynEXfrAuRe+Qh6fMQRSHLA1cQuQK3bIpKx/QYkqu1iK1fD ZsfNYFlwXoxcdo1gbrtXEBFdITx2+Tr7H6Dgs01bDhSw1DKcL8L4jEcid/uYy9n7Ttxvtx ennMoQvNp9CJOch9zYylpC6ydnjFIkHPZDDdCQSTYhH5JlEKYxkAVqIG/lvjBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641899088; a=rsa-sha256; cv=none; b=jUytWe6xh6f3QGAadC5J8TSW7VVdyCyIxHAvekqd8Rcbfdn8oCiaD6NNZpXihfgW/2cUkB pTcNOAyndtN9WhWcoYSSbcsu28FkxqAyPCQwYLMSnQyyDeYkbW81H5G4Ksygx1nkATAJSB OzQIX5JwuODta3gXUYDKjg0mz+gLGLlQnK4hJXS63TRt8ZaCQ7v46KGEdB4CxxWWo28gpC pNCsKukqgkBMx00Atw2xm/03cygQD6/7DhDvvnNthBRaJtqI6yQzjlTbms2UuharCFj36c N11qwcGuQAuV57GwMxw/kzGJF5PvdnApwIhIWzeppGOCouVs0v26BycchL4FJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20210112.gappssmtp.com header.s=20210112 header.b=pbn4tIrv; dmarc=none; 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.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20210112.gappssmtp.com header.s=20210112 header.b=pbn4tIrv; dmarc=none; 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: A28BA1B9DA X-Spam-Score: -3.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: vochpRbZbahh In ob-tangle.el, the line (defvar org-id-link-to-org-use-id nil) ; Dynamically scoped appears to override the user's customization of org-id-link-to-org-use-id. Specifically, this happens if the user has python in org-babel-do-load-languages, which leads to the require chain: require ob-python require ob require ob-tangle I believe the line should be changed to (defvar org-id-link-to-org-use-id) ; Dynamically scoped which makes the variable dynamically scoped without setting its value. I don't know if ob-tangle.el refers to org-id-link-to-org-use-id before it has a value set. If so, the change I suggest would cause an error and ob-tangle.el should be fixed to require org-id before using said variable. Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26 Package: Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elpa/org-9.5.2/)