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 ms5.migadu.com with LMTPS id KHMDINd/9mLZRAAAbAwnHQ (envelope-from ) for ; Fri, 12 Aug 2022 18:29:11 +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 kJjzH9d/9mJsEQEA9RJhRA (envelope-from ) for ; Fri, 12 Aug 2022 18:29:11 +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 0263F1C8A for ; Fri, 12 Aug 2022 18:29:11 +0200 (CEST) Received: from localhost ([::1]:45168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMXX4-0006Hc-3O for larch@yhetil.org; Fri, 12 Aug 2022 12:29:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMXDT-0002Ug-8K for emacs-orgmode@gnu.org; Fri, 12 Aug 2022 12:08:58 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:47330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMXDR-0005E3-2R for emacs-orgmode@gnu.org; Fri, 12 Aug 2022 12:08:54 -0400 Date: Fri, 12 Aug 2022 16:08:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1660320523; x=1660579723; bh=Fec4AL81daB0nU7aR+8fi/W8YvcN0H/D9ue220XstBs=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=pbcnKk6n2hEKhm9N+cxzMe2dRNWotlogdBfb5QB9djjNLIVKGZVtszTQ3QlBDnLvA 0OAtjBbC5lDJdlH99Ftn6G1kPsWtRKymfbHKodvqZWtLKj+N1iiQ7FRDq3AYnKFa8h a17AFZwe85y1G4cMRTTFE1wccSDrttVzx9N9swbNYlQnfn8nx6JMUSKPCM3vpaHQpx G+oPQS7uw3JwNtP1mXsijTkM5K/WGFlJ3MDht/hVhlmzM+3wAy3ivJBk7bzO/ro5/m uNxkLE9IZTc8+kEaWvdkVDxLEvT1GhWyTCuDKIW9/OJ9vr0JIP4SkHxS16WJvLIFwW 0WhARzo8z8rOQ== To: Max Nikulin From: Janek F Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] org-attach-id-ts-folder-format fails on customized IDs [9.6 (9.6-??-2e9999783)] Message-ID: <8g4g55i6XsG-C0vN8LdPLL-p4BxnXTCU8wzPQ1eSYSFQu_Bl8joOYGD53lfOvoA7Po9TfZXdNXYsuOM_ToD8IVAZyr8SKxk2Yl2OpN4Xb1g=@pm.me> In-Reply-To: References: Feedback-ID: 17130000:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=51.77.79.158; envelope-from=xerusx@pm.me; helo=mail-0201.mail-europe.com 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_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: , Reply-To: Janek F Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660321751; h=from:from:sender:sender:reply-to: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=Fec4AL81daB0nU7aR+8fi/W8YvcN0H/D9ue220XstBs=; b=uFco+bfG/pAmco8Ml56x4sSnN/oCfL+Ju0bgGb19XmQOF4VAvYKtMmCZZFUQWb0NDqVdKS xPfFzVfiC2v3GCIBnJuoTs0b7ZewqsR6e7oZwMqeAyP0ONjJWssKOU3YAmDdNHa1LStC32 NIOEjWPjffbdVoaJJaCwoiPo0qH5DyBgV0PunqP5N0Dk/rQuXNBggbzuDsm6bACKIk+Csl VKtWmjnG4orUJU1f4KFP+qn7av9LEl8DhyESevP3rYkZPX2Jem6UGeAwybAp97n/zZVcCd lo7iJgAc386hs1JLNKyqvtCKEZvy6TUbp97CMkL2pTLIwEG5oa7WU8+0wOxpWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660321751; a=rsa-sha256; cv=none; b=mKrvnnTjfy7JSAEokE19KekjEZxlUC9lWor0X9G4ShnFSOgt6Zf4K/iNa5majpXzTMxxVY IA0Al6hb7BZpH2k0WRIgzYl4Gn45ONDS029SoQGTIjPyFTGRv1+gEOqkIa22bSpl0vuIO/ Q0n8kAjcCMPeJTR5bdmBCrp3fdguWMe6aoENa8KMSEwExic4n7HE0GrwMvu3w6UwLBupm5 2AJyGjE7fzKpddpRWihDSvYPgWZXgVG71Cp3jEvYOdQsEE4/94VdJSAnq+Xn575y4Rg67h 5/wfHKjaPJ3pAJkDolBBHZ0/BtLgKsx/Ymf82AQ/gkPj4IEvTsMbS37UUdrctg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=pbcnKk6n; dmarc=pass (policy=quarantine) header.from=pm.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-Migadu-Spam-Score: -2.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=pbcnKk6n; dmarc=pass (policy=quarantine) header.from=pm.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-Migadu-Queue-Id: 0263F1C8A X-Spam-Score: -2.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: qZ4Kj/fuQvah I use org-roam which creates links between org-files using the ID, and I wo= uld like to be able to manually add such links to common pages even if auto= completion doesn't work smoothly. Considering the other messages, let's not get lost in details, the default = function does not need to consider all edge cases. It simply should not err= or out on ids in a different format. ------- Original Message ------- Max Nikulin schrieb am Freitag, 12. August 2022 um 17= :35: > On 21/07/2022 02:12, Janek F wrote: > > > However I tend to customize IDs for important files by hand, > > causing any attempt to use org-attach on that file to fail > > if the ID is shorter than six characters: > > > > org-attach-id-ts-folder-format: Args out of range: "ftt", 0, 6 > > > > This method should be adjusted to handle non-ts-ids just as well, > > as org-id-method does not dictate the format of existing ids. > > > There are should be no such restriction for CUSTOM_ID links (referenced > using #anchor). IDs used for attachments assume particular format and > consistent layout of files. Janek, could you, please, provide some > details concerning your use case. I am interested why you decided to > avoid CUSTOM_ID for headings important to you. > > As I wrote yesterday, you can customize Org to use directories for > attachments you like.