From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QHxKOhf9cWSyOQAASxT56A (envelope-from ) for ; Sat, 27 May 2023 14:52:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6CU/Ohf9cWQnRAAA9RJhRA (envelope-from ) for ; Sat, 27 May 2023 14:52:39 +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 876B13C4C9 for ; Sat, 27 May 2023 14:52:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2tOI-0001wl-44; Sat, 27 May 2023 08:51:26 -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 1q2tOE-0001uw-6w for emacs-orgmode@gnu.org; Sat, 27 May 2023 08:51:22 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2tOA-00036A-7g for emacs-orgmode@gnu.org; Sat, 27 May 2023 08:51:20 -0400 Date: Sat, 27 May 2023 12:51:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1685191873; x=1685451073; bh=Elfqfi3YO9Rj5epU+TIftlKW2D45Yd4FFDqpVFGwxiI=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=SZz+UdowOjAOxYiT4ICdNOVLA6BfA8HUbEAkMd6dxXs67i7xetEbBajv9WlyzFjpL fSY9c4j/9RHT/B1W3HObl3/voUgc6HZ4EGA0/skBBwI4dVcbaN9/6+pn18Jr/B7nVK D+bqkmHQJbGLggiHnj3geAzmD3+teVjUxEdBhJ+cHedu1uI0F1AjhuRwd6A8Ua24vu OsAeXTW6Crkig8t2IDLBE2JfKKqB1B1/38qyAG2G2DkcHMhX5khtoIhEKtFzsKChgD IrKOltnPWHjYMixuTtXSTj5V7gHLOdhGmJQ6J/l6uCtDxIUjSoQ1HjeSEANtByoPKR S/4f2n9eLwtgw== To: "emacs-orgmode@gnu.org" From: Sergei Kosyrev Subject: [PATCH] org-id: implement arbitrary cross-file references Message-ID: In-Reply-To: References: Feedback-ID: 53736167:user:proton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_kTzfpxVZdgBfiuUu28aD4Fad49drusFsOLZ2EK3P4" Received-SPF: pass client-ip=51.77.79.158; envelope-from=kosejin@proton.me; helo=mail-0201.mail-europe.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685191959; a=rsa-sha256; cv=none; b=R9oniEk7Vjn430Mw7FBMw0dkB6Nxs4r+hrY/7aQtpF10mAa1rpaL1AiGOT1b5yUXui7XWU zC031uQPLfBa7AWYGMsgW1IgHyfbZ1Rq50eRMhzNsb3JJoXIG3Rm+OHrFCGLW4JnOMk1be BDU5VCuxsnhyhm6ErlpoesYJNTvVI46T++wV5Lm735UlbNWo5K/5lD90yYYFcyQBCR2ex7 ZUZNhzYrXVBnEW3Fx51scDalFJq+YQ4e01lhtJz3IHBqB5VG0veyVy2FxYihQRAtHRKxWP nGBe1S05O1iSXFX7RJgzfNaVZu0A4mM4Yd1TYxKG6PM+ajfsoOuc5oGc0iPp7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=proton.me header.s=protonmail header.b=SZz+Udow; dmarc=pass (policy=quarantine) header.from=proton.me; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685191959; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Elfqfi3YO9Rj5epU+TIftlKW2D45Yd4FFDqpVFGwxiI=; b=EBXD+xUJvT5kH2y0JblMK9H5sT2BozB2dypDXr5zWDT8RUxE/lJvX1HLBZNArX5FGq3Lyt 94WIFtvmJb7OX4iFA3JMQEWUbGEJ4uXNnVFm7lsU57o/0V9yI0eiR029WqjnR90kNg0P25 onXkSKSh6PrPxwGR2wPvtaC4pdEEr3/g5vdP0D3rkg20exYYqabEp4qWujvWOmb7fHPs51 516IUOBk4aaD5LLXh6sivPD8zL5YAbIHL4euw11k9Pk3jevVW69EaJgPdGkhA+dPrPyVG8 DZAjzmkSIqy2DNk3+GuEmjepxbYr0W7Spc3VKE+rNxXEd0hVGFfo1S+TwkIMsg== X-Migadu-Spam-Score: -3.56 X-Spam-Score: -3.56 X-Migadu-Queue-Id: 876B13C4C9 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=proton.me header.s=protonmail header.b=SZz+Udow; dmarc=pass (policy=quarantine) header.from=proton.me; 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-TUID: xRFDcbayER4E This is a multi-part message in MIME format. --b1_kTzfpxVZdgBfiuUu28aD4Fad49drusFsOLZ2EK3P4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Good day list! This extends org-id in a way that allows table formulae to reference table content in other files. Patch is attached, and can be alternatively observed via github: =20 https://github.com/deepfire/org-mode/pull/1/files This is my first contribution, so caveat emptor! Thank you! -- best regards, Serge Kosyrev --b1_kTzfpxVZdgBfiuUu28aD4Fad49drusFsOLZ2EK3P4 Content-Type: text/x-patch; name=0001-org-id-implement-arbitrary-cross-file-references.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-org-id-implement-arbitrary-cross-file-references.patch RnJvbSBmNzEyZmE1N2E5MGM2OGQzZDkwNjZiMTBmNDk4MjJlYTAzMzdiOTIzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBLb3N5cmV2IFNlcmdlIDxzZXJnZS5rb3N5cmV2QGlvaGsuaW8+ CkRhdGU6IFRodSwgMjUgTWF5IDIwMjMgMTk6MzA6MDEgKzA4MDAKU3ViamVjdDogW1BBVENIXSBv cmctaWQ6IGltcGxlbWVudCBhcmJpdHJhcnkgY3Jvc3MtZmlsZSByZWZlcmVuY2VzCgoq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kKKyAgICAgICAg KGxpc3QgZmlsZW5hbWUgdGFibGUtbmFtZSkpKSkpCisKKyhkZWZ1biBvcmctaWQtZmluZC1yZW1v dGUgKGZpbGUgdGFibGUtaWQgbWFya2VycCkKKyAgKGlmIChmaWxlLWV4aXN0cy1wIGZpbGUpCisg ICAgICAobGV0ICgoYnVmZmVyIChsZXQgKChxdWVyeS1hYm91dC1jaGFuZ2VkLWZpbGUgbmlsKSkK KyAgICAgICAgICAgICAgICAgICAgICAoZmluZC1maWxlLW5vc2VsZWN0IGZpbGUpKSkpCisgICAg ICAgICh1bndpbmQtcHJvdGVjdAorCSAgICAod2l0aC1jdXJyZW50LWJ1ZmZlciBidWZmZXIKKyAg ICAgICAgICAgICAgKGdvdG8tY2hhciAocG9pbnQtbWluKSkKKwkgICAgICAobGV0ICgocG9zIChw cm9nbgorICAgICAgICAgICAgICAgICAgICAgICAgICAgKHVubGVzcyAoc3RyaW5nPSB0YWJsZS1p ZCAiIikKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxldCogKChpZGVudCAoY2wtc3Vi c2VxIHRhYmxlLWlkIDEpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGlk LW1hdGNoIChzZWFyY2gtZm9yd2FyZCAoY29uY2F0ICIjK05BTUU6ICIgaWRlbnQpIG5pbCB0KSkp CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHVubGVzcyBpZC1tYXRjaAorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGVycm9yICJvcmctaWQtZmluZC1yZW1vdGU6IGZp bGUgXCIlc1wiIGhhcyBubyB0YWJsZSB3aXRoIE5BTUUgXCIlc1wiLiIgZmlsZSBpZGVudCkpCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcndhcmQtbGluZSkpKQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgKHJlLXNlYXJjaC1mb3J3YXJkICJefC0iKQorICAgICAgICAgICAg ICAgICAgICA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