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 ms9.migadu.com with LMTPS id CBP1DSYqf2RiFgAASxT56A (envelope-from ) for ; Tue, 06 Jun 2023 14:44:22 +0200 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 GKHPDSYqf2TPfAEAauVa8A (envelope-from ) for ; Tue, 06 Jun 2023 14:44:22 +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 E1B883C103 for ; Tue, 6 Jun 2023 14:44:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6VxD-0002Hh-AQ; Tue, 06 Jun 2023 08:38:27 -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 1q2A6t-0005xB-3Z for emacs-orgmode@gnu.org; Thu, 25 May 2023 08:30:28 -0400 Received: from mail-40138.protonmail.ch ([185.70.40.138]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2A6n-0004zy-OJ for emacs-orgmode@gnu.org; Thu, 25 May 2023 08:30:26 -0400 Date: Thu, 25 May 2023 12:29:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1685017810; x=1685277010; bh=iVnUOdm0pg0+VvQr500+MubsnFunUsoL53hY6O7Pnes=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=QbKgF8sZ3o9g81YtH66VP0mKJegBNP6+lLbHS9B0997Ct8NNg0pF2jNMG3DCN/kI9 DrDm7QEpjds3+jXsyOjdSM4VIelfm+QNLMAljFH2s6tCPLYFHze/0JuHQqL7hOwU4n MPcTjdIu3uxbqb8Id2lIwaxL7IGZOqKqGJqMpRl4+szeeFmWM+A051tvclZFyuU3On Me3pO2xYIQmg8/0CvE8TZKHTCBxi59yafMKnHh8GGYcbWFtOwtKNo5brYJjKxqkxBC 7oXjBOJ42Ut9AniJxre4FawyEjShL8EU0nkjCmcySdxNcj7HHXKbNh6in8aZi7wRGd eWiuEPJX3HPgg== To: "emacs-orgmode@gnu.org" From: Sergei Kosyrev Subject: [PATCH] org-id: implement arbitrary cross-file references Message-ID: Feedback-ID: 53736167:user:proton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_s8VQ8ZFJwR6I7Ga50yZdcBQWFzeoHjmK17WeyqM3ic4" Received-SPF: pass client-ip=185.70.40.138; envelope-from=kosejin@proton.me; helo=mail-40138.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 06 Jun 2023 08:38:22 -0400 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=1686055462; a=rsa-sha256; cv=none; b=Wf+SeZxLWKjJzQ5ws7rIX8Xc9vjhchMHrDY260M25+VUlv5FXZj7LFiS7JDhmX+RfdLX51 mMPmB3IdwuM3UzYAr7S8C1fHa0v9d0fEmuk5xjidbFWC/cOzevYvafSUc6Hr2Ds2UqMTYj if+daDTEbBoZh4N4FUdzNyaaACFr+aqjlohMLyQ1zAfu+68eFIa5rp2bgTTPWNIe4Yb9ql oxFQFq2OZP7pZh8T5MnkYsLas8LnFZUtdzILU2/3xolxqrnLvQCkgsvhsMkCD1uYQgPDhB KfF8boH8CvgJCN+DswqbWq+IJ8nVhlsLhr6RDqNzskWBxsPNPn1qOtzyJS74Og== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dmarc=fail reason="SPF not aligned (strict), No valid DKIM" header.from=proton.me (policy=quarantine); 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=1686055462; 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=iVnUOdm0pg0+VvQr500+MubsnFunUsoL53hY6O7Pnes=; b=sl/2T48Gmqn399S58pfsNFjXrK2mdzBtVgGeH1V+1eGCcP2GSS+bldsr5yA3XQgeR2e1Su gkZcTFuCYQ3BQ4P5N2zoJ8X8dIgC96lWTszjjHi7PNDvhxde5gWaYXWGx5GLCTLhrGpugd PkYaY8xlGBp1KJ43lHyUdwkx/B9P3DqpYV+VL5OW6lxH1+hNVp0EVKf1nUdPeS9KKK1BfL yxQawjHH+4MaKsehFiiStZYfiRtxHhtTkbeIIknotBMJp4fH0w/SluRLAmL9uhqxW10eKV bkPxD8OaldymnX0PQ87eCSp1II3McbnWv/vNOUyeii11xqDH38Vv7qk77Y8KDw== X-Migadu-Spam: Yes Authentication-Results: aspmx1.migadu.com; dmarc=fail reason="SPF not aligned (strict), No valid DKIM" header.from=proton.me (policy=quarantine); 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-Scanner: scn0.migadu.com X-Spam: Yes X-Migadu-Spam-Score: 6.00 X-Spam-Score: 6.00 X-Migadu-Queue-Id: E1B883C103 X-TUID: 9RSEWLGGPJOt This is a multi-part message in MIME format. --b1_s8VQ8ZFJwR6I7Ga50yZdcBQWFzeoHjmK17WeyqM3ic4 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: https://github.com/deepfire/org-mode/pull/1/files This is my first contribution, so caveat emptor! Thank you! --=20 best regards, Serge Kosyrev --b1_s8VQ8ZFJwR6I7Ga50yZdcBQWFzeoHjmK17WeyqM3ic4 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 cmctaWQ6IGltcGxlbWVudCBhcmJpdHJhcnkgY3Jvc3MtZmlsZSByZWZlcmVuY2VzCgoqIFRhYmxl IGZvcm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xpc3QgZmlsZW5hbWUgdGFibGUtbmFtZSkpKSkpCisKKyhkZWZ1biBvcmctaWQtZmluZC1yZW1v dGUgKGZpbGUgdGFibGUtaWQgbWFya2VycCkKKyAgKGlmIChmaWxlLWV4aXN0cy1wIGZpbGUpCisg ICAgICAobGV0ICgoYnVmZmVyIChsZXQgKChxdWVyeS1hYm91dC1jaGFuZ2VkLWZpbGUgbmlsKSkK KyAgICAgICAgICAgICAgICAgICAgICAoZmluZC1maWxlLW5vc2VsZWN0IGZpbGUpKSkpCisgICAg ICAgICh1bndpbmQtcHJvdGVjdAorCSAgICAod2l0aC1jdXJyZW50LWJ1ZmZlciBidWZmZXIKKyAg ICAgICAgICAgICAgKGdvdG8tY2hhciAocG9pbnQtbWluKSkKKwkgICAgICAobGV0ICgocG9zIChw cm9nbgorICAgICAgICAgICAgICAgICAgICAgICAgICAgKHVubGVzcyAoc3RyaW5nPSB0YWJsZS1p ZCAiIikKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxldCogKChpZGVudCAoY2wtc3Vi c2VxIHRhYmxlLWlkIDEpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGlk LW1hdGNoIChzZWFyY2gtZm9yd2FyZCAoY29uY2F0ICIjK05BTUU6ICIgaWRlbnQpIG5pbCB0KSkp CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHVubGVzcyBpZC1tYXRjaAorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGVycm9yICJvcmctaWQtZmluZC1yZW1vdGU6IGZp bGUgXCIlc1wiIGhhcyBubyB0YWJsZSB3aXRoIE5BTUUgXCIlc1wiLiIgZmlsZSBpZGVudCkpCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcndhcmQtbGluZSkpKQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgKHJlLXNlYXJjaC1mb3J3YXJkICJefC0iKQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgKG1vdmU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