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 MAs0HaZs3WENGAAAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 12:40:22 +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 GNS9GaZs3WExRgEAauVa8A (envelope-from ) for ; Tue, 11 Jan 2022 12:40:22 +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 040E71C83A for ; Tue, 11 Jan 2022 12:40:22 +0100 (CET) Received: from localhost ([::1]:56112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7FVl-00024O-5Y for larch@yhetil.org; Tue, 11 Jan 2022 06:40:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7FTy-0001oi-1Q for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 06:38:30 -0500 Received: from [2a00:1450:4864:20::135] (port=36620 helo=mail-lf1-x135.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7FTw-0007Cm-2q for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 06:38:29 -0500 Received: by mail-lf1-x135.google.com with SMTP id j11so55218619lfg.3 for ; Tue, 11 Jan 2022 03:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=JmTQqyooJnADyYoi/CO5rOw9SEAqpmDmOMtaKHxecXM=; b=H2ObreuFGXhNSX52XHQ6/DcTUpvizT/LZlHhBk2nb774adAUym0hre0mee5ttC0n6J PLODvtXIToIjU3rfIFsrMvxiud+/eq70NxcKZKSK/H8zELRgY6OXsoaZRe8Bz30INRnA T5THXTOPXAbW7Hz87pwtw/dayfi7fwIlXNenMatUHvKnQJ9YWZLnqNmyiG+vukWMkfuf MFqAkyIWGvJEvufsxT6e8ppHxNvTHw/GnOsRf7APZFKDiyMlN7GlaRFI2DTxq4TA2Ipi N2JQrYQPj1Ms91RSuSGjQNtOhuhqrc28mgXHPfQw27r2Mr2fnYGYHdB7ctuRSo1WwxaK /9CA== 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:in-reply-to:references:date :message-id:mime-version; bh=JmTQqyooJnADyYoi/CO5rOw9SEAqpmDmOMtaKHxecXM=; b=Thas5BjkqT//1Ax6xVlRGw31fmFsk+LI/Yb/okUi2cAXiIxfg/XjbOOjDJAp8Dg8PP QMepIGUKEed+S0A1JdXJfc+0lEsOAzRX1Re7UfJN2d0N7cf7faVfGlNGJJJolRjqEpcl SDau6UaelBjcpALBZL7sHnivr7Bm9QCf4WR5QFUrRFjw6D/NXtplKGt0liG4AJzHouVd JbQz9YXQbJVipiJEb/q14pP6rK0oRL7WBLhv4CUr9OO0ZZWVE/1a0GsEDuowLO++IpT0 WjHrg2/qHTjKg4gXUPok0+AyAm7giTcCWCo7MrKyNiwXK4SJQFDA21ud8uSVRZ0WAzVr VQTw== X-Gm-Message-State: AOAM532QboMnRbiAG+1GwrH3w2aoE3xGEXt7mFaNI48Ex92OpaMWVHDE ZOy4zHusM/G3nhyvVzPGD00= X-Google-Smtp-Source: ABdhPJy2nuCMK/QnKogtlV65TpYfIQOLD9yf26reH8AzZjxM2p54oAWE0XgFkCCA7aaNJfofpyqEmQ== X-Received: by 2002:a19:e611:: with SMTP id d17mr3119351lfh.415.1641901099933; Tue, 11 Jan 2022 03:38:19 -0800 (PST) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id o6sm1312782lfk.232.2022.01.11.03.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 03:38:19 -0800 (PST) From: Ihor Radchenko To: Allen Li 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/)] In-Reply-To: <808rvm4jr3.fsf@felesatra.moe> References: <808rvm4jr3.fsf@felesatra.moe> Date: Tue, 11 Jan 2022 19:42:45 +0800 Message-ID: <87mtk24hxm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::135 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=yantar92@gmail.com; helo=mail-lf1-x135.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, 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, 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=1641901222; 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=JmTQqyooJnADyYoi/CO5rOw9SEAqpmDmOMtaKHxecXM=; b=tlybdLrDJlsaUOY2g9M+Id8zk4x84hhRX4isdAoZ7GrC7kyuxBjWfMpRUtCLXXv4FiKT7V K4qkdBT7QZ2807upBAfX8NWGRmBdONddLEPAo41aWdtTKkUg9Pt80T1zY8cg+vOawsrlyg e5UfxTWwhQSz05b+iU1vnMZIK2KPBSZlsFvmOSrwERWCeAC3F1I4jR3QgIpeeIyICsVyHs DlYkXIwIOBvPOAWVzz/WZ3y9JcdMY1FHMowvXqhfEBzoCAd/8UjYMLUkwcS/bHu6ENd7kf lNWNDaTCiI/8Haa0VMt7OoqfYEodj3dZQxj0GtpxOkfLodqkzs58eahGkf/INg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641901222; a=rsa-sha256; cv=none; b=GNRZc5UMcWoQhplIhC/ajpGto0eYazCKPEcprYGlqzhl8uylRxCz3tp9m0LZpZgt/5FY+y b1qay2Y0nYJxFhzIQlrQLp6KQnca7buymWHvucIT4LOm+MwU2w5I4fQur1Ujt9t0mN1cQn HFTh1JktQOng98MTregdK1jz/BsW8uG4QQjXbth0bLSDRmASbyHwoRJyCaUe12wsXg20lK VT9kkVihsrUmN0vOgivrTO+m6wb1Rn6oqFuPwUSgXsEi0x80sHeijD3jMysdoDsvE5zYRo 64uFnNDpBFG5Tw6EXLSGTGT31hZAbDZoNCUZNY5BXkqeXtdsSVVUtTwNE0WluA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=H2ObreuF; 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.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=H2ObreuF; 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: 040E71C83A X-Spam-Score: -3.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: kbu+p3f49kUt 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? 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 Best, Ihor