From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id COg+MBrKN2WzowAAG6o9tA:P1 (envelope-from ) for ; Tue, 24 Oct 2023 15:43:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id COg+MBrKN2WzowAAG6o9tA (envelope-from ) for ; Tue, 24 Oct 2023 15:43:54 +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 7902A3372B for ; Tue, 24 Oct 2023 15:43:54 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=P9JlbDXM; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698155034; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=139DhdRq9xtQbpVoyzM2o25oyPrRUvFBeqVO1pXnI7g=; b=A/j1cI+j8sPSUSSGeqBScTl+TL6Ud+xb6ea3Zqwd9CaDzNk3PuRoVHpbgRhU2zgP5sHdWJ WLahMq2n9/aSJH+h6/OIQ9u568LIaSlleF/pIAZDX1SsCQsWC78i4nZFy/PNeJpe314imw elknSKaj2BdqlRfmJJ5OmmbWefgDiomfj2Ejx3Am/T9k9eaWkvAhkoWdO+zojE4lkQSFn8 i49xEv+uyXIKTLUE0JYdOUaOqlnUd2dgerReZ68P7QU0pEfR/OGfD4E3uhR+vNuus341xE K+eKW0oBMRb0NlDLFZl0oGpHWalxO/DqZ1lgnN73BDPWAFAPawNZgCnadceZDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=P9JlbDXM; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698155034; a=rsa-sha256; cv=none; b=WxqM87DVKfeBo8eubRxGAEHC/cuFhqLVlRHtjKB8STA4e7R8qJ27rueUKaHhVkDtZVYkBD b0fJaNViMdpoWYRHZ6RqCfMhLjl0tHThGnfDMVzrPl4BMEg85pySDMgWXH+iKoIK3dtbPM zKEVOm9HJxkTOJqzjoY2jkh3kzDiO+H/x7lXLJp49VDGZZXLxvFBQKak6TV2Yo9nDAy20P Gx1Hmmhp4RmYrXFMlkaI4+jOHokmYnFTXNGZG5y7vraytkDe5BTk5HO0WqVC2lC96WTUO3 O2bBgmG7eJyj13sMSdfNpHl0PYXUIzSdVVbiAPCjs/JM4TdxmYmRHWSAytLeYw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvHgN-00079W-OU; Tue, 24 Oct 2023 09:42:55 -0400 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 1qvHgM-00078o-2h for emacs-orgmode@gnu.org; Tue, 24 Oct 2023 09:42:54 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvHgD-0007YK-Co for emacs-orgmode@gnu.org; Tue, 24 Oct 2023 09:42:53 -0400 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507d5f813e4so1594888e87.0 for ; Tue, 24 Oct 2023 06:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698154961; x=1698759761; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=139DhdRq9xtQbpVoyzM2o25oyPrRUvFBeqVO1pXnI7g=; b=P9JlbDXMKiNPM5EdLZ3PoL3Vm+gabBLltlxxxnxFEpVV87Eo456mEdAlobEUd120BL GtsDghcuN10TDQVIHBg2BzdYHy/OlzhJ0anqiCEOBOAUB3tYFpD1dnXUpP/v5i68Im75 0RsOTe1t+5LI7+Yn3DUQfOYk9n4OVkaDH2AaYalk7D+yygkdqffg0aeVABRPzEJbx7h0 A1dv6a1m7o0CrqIvRwLz+7SuhCnQzOr8m3t+BDo07Jc0VQ5i4vy5AJo0AZMYlSLYNPZG bKjur9RbPhltQmPzPMxgQ5MSrWSKDNyGcgztRtEPve07taHkQl6wZxSkIZlZt814nMBc pMyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698154961; x=1698759761; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=139DhdRq9xtQbpVoyzM2o25oyPrRUvFBeqVO1pXnI7g=; b=rbqNPi+2OFmRqljl+nrE9+SJ+M6jGy1FxYW1UZJc8iMdAZ3qO5YKLmn9nnQkCdwnDp lGuLm2BbdBmuX/M5/5KvRw6XeQ/aYXVnsMbt91GG1A4+8JPvSIy2UD5vDdjHw3HMxSH2 RMnLU6YUc+1cVb7FHHs260NuHdJI21CpU44mpF9UkT2/xTeYq424c2r9mAieiRzLkMpk DA8fnF1esz8peGDuZi3HyqP5PKB3VXByZ/R16ilhSHE83bZjEUqpJakAvpexNrra8KHb cGcq8YCiXqArXbx6cCA7O9wP2nBcqJD5AhUHk3erLDX42W17/yR101vQCv1KgeoT10KX hqjw== X-Gm-Message-State: AOJu0YzgPWVIQtDeBwQix2OcM+hW14IM0wDSJS4y6ngKFJgreZrB98yg yKLhPtebwOFd6xWEsmmfSqQ+eLJD05NUkBuxhND4woIT X-Google-Smtp-Source: AGHT+IEy0QBfoJT5pqiXAjrXXtySp+ukcKK+Go+wYG3stbOi2fiPORTWjOW+gwyh+PI3ohnLCqvoWJHmuSc6L2W4W98= X-Received: by 2002:a05:6512:1594:b0:503:404:b44c with SMTP id bp20-20020a056512159400b005030404b44cmr8543622lfb.1.1698154961239; Tue, 24 Oct 2023 06:42:41 -0700 (PDT) MIME-Version: 1.0 References: <87sf64thaz.fsf@localhost> In-Reply-To: <87sf64thaz.fsf@localhost> From: Stefano Ghirlanda Date: Tue, 24 Oct 2023 06:42:05 -0700 Message-ID: Subject: Re: Colons in :var header arguments To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=sg19721222@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.57 X-Spam-Score: -8.57 X-Migadu-Queue-Id: 7902A3372B X-Migadu-Scanner: mx2.migadu.com X-TUID: AmQ8baM1X/Fl Thanks, and sorry for the slow reply! I was wondering if it would be more intuitive to try to resolve the reference in the same file before looking in other files. I think this would make little practical difference as I think files named sec, tab, eq and fig are rare (although I often use fig for a figure directory, I wonder what happens then). But looking externally first is more compatible with current behavior, so maybe that should have priority. Thanks again for considering. On Sat, Oct 21, 2023 at 3:11=E2=80=AFAM Ihor Radchenko wrote: > > Stefano Ghirlanda writes: > > > I have run into an inconvenience in that colons in :var header > > arguments to source blocks are invariably interpreted as referring to > > another file. However, I use cleveref in LaTeX export (via org-ref) to > > automatically format references using labels like tab:data, and in > > these cases :var data=3Dtab:data gives a reference not found because ta= b > > is interpreted as a filename. > > I agree that it is a problem. > Attaching tentative patch that will make Org babel fall back to > searching in current file when FILE in FILE:REF does not exist. > > It is technically a breaking change. If this is affecting someone's > workflow, please chime in. > > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at --=20 Stefano Ghirlanda CTO, DataWorks - https://dataworks.consulting Guest Professor - Stockholm University Centre for Cultural Evolution