From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ABFLNZXX3WGsCwEAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 20:16:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GDHaMZXX3WHDfAAAauVa8A (envelope-from ) for ; Tue, 11 Jan 2022 20:16:37 +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 2C9E538B63 for ; Tue, 11 Jan 2022 20:16:37 +0100 (CET) Received: from localhost ([::1]:43392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7MdI-0007yc-Cy for larch@yhetil.org; Tue, 11 Jan 2022 14:16:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7MHS-0001wh-FG for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 13:54:02 -0500 Received: from [2607:f8b0:4864:20::1036] (port=39698 helo=mail-pj1-x1036.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7MHQ-0007WL-IL for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 13:54:02 -0500 Received: by mail-pj1-x1036.google.com with SMTP id c14-20020a17090a674e00b001b31e16749cso6972030pjm.4 for ; Tue, 11 Jan 2022 10:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+t2nzxq73oCaj4vZTgt/6eKiIE+hSaLGdJnHuAH1DfA=; b=d9GP/C9NpJhxCCPxgUFENGb5XRnnfnhIngEw4WOeyJXkkUHeNt1fGIsPr5mtB2mdLV MYU7BnINIvvC8eeI2DWlRleARsT97EjkrhV+7uohsmrc/48XxwrZscLtQZ+293csi8Zm MG7unBcQE+pooa1HBv/s7wbQCkvc0QJWnrCqJH1iHBH0DpodetpqTs8jaE/cVtZsknzH YtFp1en4ODLXW154h0O7bVCaKS+FDafouKndIW+adKWoMBU09oi8p106C4ZDvHM8CnVR Fa2W5OZcF6zfbFIjenBwciSQvtcPEs4UOy7w+Ppo4gW64k1WZoiQ0YtEBlq93o7ouDA3 JzYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=+t2nzxq73oCaj4vZTgt/6eKiIE+hSaLGdJnHuAH1DfA=; b=EBCSYYFMuGttpTmeh3vLmSnoNs1+h9JEXb1UgQlEkojkvrv3YRjli9/Zbrx9fCMf2A o0QvheXUAxiihr0jcpNRFwc6g2lRdtGrlzxUo6Xt/7nN3McB55LXUvjOqXAkuMleWzA+ nwRM0FKSRFEqIBelG4JE3ilXAc7Sl2RK2FFct34EzOB0tcDM8LwzjbV2rvXSPqeYQRTV zhvveP8NpkOpVjXOH3eb3xnBOFIjF7pxg0QenjnCNU3P9iecFET3uaWpfm7jd+TfYU6T jkxbhopCmNLeSszI+7syAdFGPK6BpzlpE4miQPPeCJJRa3eIgFi8ScGkPdDMKJGeJzqR u2UQ== X-Gm-Message-State: AOAM531t96D4pqmL4EM71P+7k88LV9eE7RepqiO9HnOekJIO5IBpBTkz D1Ee9V1oKrFqqjMKsQ2EDNpykJEpoUB6ZA== X-Google-Smtp-Source: ABdhPJzHUGc+tv1Z09ui9iN3KpFc6Y7n+stc/FTmuIP/UYnbCRv+kOoeP3rcSnAK9DiBpg7V6nMm2Q== X-Received: by 2002:a17:902:7297:b0:149:ee00:8a8a with SMTP id d23-20020a170902729700b00149ee008a8amr5819461pll.130.1641927238972; Tue, 11 Jan 2022 10:53:58 -0800 (PST) Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id e29sm103261pge.14.2022.01.11.10.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 10:53:58 -0800 (PST) From: Allen Li To: Ihor Radchenko Subject: Re: [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/)] References: <808rvm4jr3.fsf@felesatra.moe> <87mtk24hxm.fsf@localhost> Date: Tue, 11 Jan 2022 10:53:57 -0800 In-Reply-To: <87mtk24hxm.fsf@localhost> (Ihor Radchenko's message of "Tue, 11 Jan 2022 19:42:45 +0800") Message-ID: <80v8yqkssa.fsf@felesatra.moe> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1036 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=darkfeline@felesatra.moe; helo=mail-pj1-x1036.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, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: emacs-orgmode@gnu.org 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=1641928597; 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=+t2nzxq73oCaj4vZTgt/6eKiIE+hSaLGdJnHuAH1DfA=; b=oktcG9whZ/rnXT4jTnB6i0XfH65MAEqJkyWnhM490I/Y7jVYcR5mE40vqRNpG3o7u3u+FK FSQa8fw+xrbJGzpB6keMzsjerHMc7psUL+BZ170Ox125kLJjOKESth6hZXAF6ji1L3A8hF wSDaqDGqRIHOnQxwhHuqUy6zgZjQWove1J/rR0ST882azJHLdeq+XWSI9vtuQGgnYynuiT 8dLyilKXa6+jeAPo0GK2KwP91alIoJGR5ECU/jsocgYi5x12R15zOOLSfv1/nlss7O1E/6 2s70Ss82PyJgXVimr96XTBWVWa8RJyAsrvfKoO7NgFE4JX9RYSCPQvp7+Gclhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641928597; a=rsa-sha256; cv=none; b=RfdECLxBxCaYes5fFYZnJ8TCRpWDsYu3A9vaYMYHqk131INoypr8OqyB8cxTSMvBRBA5iJ fISwMyvtlCzZFlMyka78y5I8MQwOgGLZrLnYxhEXbgLNcZpruNILn1AkgwgPdaiYIFCcsP TuM6742fCPpBxnqIdyaVYw++k5Nxzyi2nBHGwxujwNUoRnrTxMeH+kMh8rVdLgfxdoRP8c PRQoBNpa9D8Mssns6zkVou06ljCDnLACxPmtzvlF0E4P6qKjqSCOBJsi/Es862nUIfkEv8 vZyxWJ/kDlB7sJEue5fifjf5Ye+oSiSAu7mrSOoIrdpYbuy/LHG2wdfn5u4Neg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20210112.gappssmtp.com header.s=20210112 header.b="d9GP/C9N"; 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.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20210112.gappssmtp.com header.s=20210112 header.b="d9GP/C9N"; 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: 2C9E538B63 X-Spam-Score: -3.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: dryowzO6Td0f Ihor Radchenko writes: > Allen Li writes: > >> 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. > > Have you seen this happening? Yes, that's why I filed the bug. > FYI, defvar does not overwrite variable value that is already set. > Try the following: > (setq foo 'my-value) ;; foo = 'my-value > (defvar foo 'value) ;; foo = 'my-value !! > foo ;; foo still = 'my-value > > defvar only matters if the variable is not yet defined: > bar ;; => error void-variable > (defvar bar 'value) ;; bar = 'value Yes, that is so. Even if org-id-link-to-org-use-id were always set at this point, there would be no reason to use (defvar org-id-link-to-org-use-id nil) instead of (defvar org-id-link-to-org-use-id) > > Best, > Ihor