From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uIO7HE3kXmc3UQAAqHPOHw:P1 (envelope-from ) for ; Sun, 15 Dec 2024 14:14:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uIO7HE3kXmc3UQAAqHPOHw (envelope-from ) for ; Sun, 15 Dec 2024 15:14:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="gRDZ5EV/"; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1734272077; a=rsa-sha256; cv=none; b=VNuQ0kNcff1ZVSZTB6hCcNZex4igy3chRKW/PJLrpvkCX0mocliX8qiMZK/eRU8kE3I95h tjIbSIPTgFPYkfY/41shn4AlGUvGlaPFjHuswGdqBWUvWUbUR852AME079n+GHb7VMhsKa ykPtuutjTDFoAQNLqgVM1YMMKIIDsjoc2o7JtWulP3Ul5abvUlW8Do2QonlPwr2H0aOc/q OG8ol4iFuDGCczAU/9rjV/ycDRFRUhkDMX+DGr6yDsKbYFxlscPz2Gbz+HXiP+hQvuwNuP 5dTPyE8lrvcqP4xdf4cg1I771t7D3RoaZfNtdt9lV7pT564w37hmJAUERlvbHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="gRDZ5EV/"; dmarc=pass (policy=none) header.from=posteo.net; 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=1734272077; 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: 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=4hhmSAdw9AjfFqARUwqnV5gNju3eHOfVs9dClGQl4Ls=; b=AqMXZUfKIGhcmYn+zQMB33WpbcVfc1dIfq9CS0pRDG61bBpxU8OWmbPJ86VhJOinfJdmac gS+fqTZbyvgGnckteg0HBGXXjdpAC9dwo1TUiNI+UHb1ZVGX5JFFygYYnLImvTl90ct8ae WT+yWOBWyXVB/9Csl6uz5mKeMyeYEBByo3DgaEn1mBOM7BhUKUSPOl4TfGhny3oeNaX4Wh ZkAmZkPMmg69wSxNCRfIZH2anMO79kE5FyI8QbpWQVzBMZh+vZntJ5bykP4qXwYy4PhQpY lTidNavxXcR5Q0ZsOutGf/x4QsQzwKWmf+zrAsD5NUoiN9VAgDWhEKRq6C/d2w== 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 1658A6352A for ; Sun, 15 Dec 2024 15:14:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMpNR-0000gV-6N; Sun, 15 Dec 2024 09:13:45 -0500 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 1tMpNM-0000gB-T5 for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 09:13:42 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMpNI-0004Mt-DZ for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 09:13:40 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CB7E8240104 for ; Sun, 15 Dec 2024 15:13:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734272013; bh=/vPjXnm9zU8mJbA8hzJlhabhqm/Fwt/tJ+aZyy5p73c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=gRDZ5EV/9keaOGaDCR4Rj4xxu40AqG94js7j/UnEPIUTshHhp+FJv+Z+6XWMiUE9p /py6UB6dD2ljSB6cmms7j/YL6EhdOZrQVmyc3R/cNUWaAy4IwAN/q1C9bB7Aq46PXZ Yb0sN1xw9GEu8poK6vEWK+Sk0uFercXns5oBxY1urB0iMDXDDRgoHL40Erev1Otns/ degSnDUGGF5tyS4mxxtr8Eygk+4lMapoILe53ufhoZw7AS5PvKFj2cgFsTpwCOuPuD pHksSccqd+6bmHuVKQ6BFO7rnRHDzrEUdoAvFs0RNxSEowuJoO79GEoZP7Za8f/HCV +h5G1GCkp5hcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YB4ml3tdBz9rxP; Sun, 15 Dec 2024 15:13:27 +0100 (CET) From: Ihor Radchenko To: Martin =?utf-8?Q?Edstr=C3=B6m?= Cc: emacs-orgmode Subject: Re: org-id-locations-load should probably abbreviate file names In-Reply-To: References: Date: Sun, 15 Dec 2024 14:14:56 +0000 Message-ID: <874j359gnz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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: -5.03 X-Spam-Score: -5.03 X-Migadu-Queue-Id: 1658A6352A X-Migadu-Scanner: mx12.migadu.com X-TUID: rGfkgXvGA4GI "Martin Edstr=C3=B6m" writes: > This is not a bug that breaks normal use of org-id, but it may affect dow= nstream uses. > > An example is my package org-node, which checks file names known to org-i= d, and combines that with other sources of information, to build a big file= list. > > This list is automatically de-duplicated because I can normally assume th= e names are abbreviated. However, reading the source, it seems that it will= not ensure this if `org-id-locations-file-relative` is t. Then `org-id-lo= cations-load` merely uses `expand-file-name`. So a path that used to be ~/= org/file.org becomes /home/me/org/file.org after loading back from disk. > ... Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D036e8dcf04 --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at