From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 GHgyECx29mJ3cwEAbAwnHQ (envelope-from ) for ; Fri, 12 Aug 2022 17:47:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gKI8Dyx29mLkUwEAG6o9tA (envelope-from ) for ; Fri, 12 Aug 2022 17:47:56 +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 E5B4A889 for ; Fri, 12 Aug 2022 17:47:55 +0200 (CEST) Received: from localhost ([::1]:40372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMWt5-0004qm-Lw for larch@yhetil.org; Fri, 12 Aug 2022 11:47:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMWhS-0006fL-1O for emacs-orgmode@gnu.org; Fri, 12 Aug 2022 11:35:55 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:41661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMWhQ-0008Sa-Hl for emacs-orgmode@gnu.org; Fri, 12 Aug 2022 11:35:49 -0400 Received: by mail-lf1-x12b.google.com with SMTP id u3so1810240lfk.8 for ; Fri, 12 Aug 2022 08:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=8FodbNniKEJPdaOKI5JfVlAZKqZF6DgsJ+SRT3cT++k=; b=evzlsmw3cFHCVs9kesBeAtPRlrxfv15HmAIyp0e0mK0Uwf3nvKaVgr2THI56Mpy8BZ jP5iBezY4wKwrnFrnW4GRIiztGfZRnkbMyNzoInG7xe7htBWJrmY6+gSH4qmZ0cB5fSx I9T/E8JcioWo76uGI1484WBM6RrnwN2cWQRCelsoCWjopxfT02p0feQ8omqbkJIeGj++ lAw4u0ioinswwIb3/cTSCYv1emYlk9eB1vuUKvxx/RClzxun/jjjeP6Skrfwb0sy3hWB EodLNrzYLFOsgC63a/nLe9Wd2NwLKlR0/7/yXeQDCbedk7AjSY5IFqNe8FezJqKItg46 YVpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=8FodbNniKEJPdaOKI5JfVlAZKqZF6DgsJ+SRT3cT++k=; b=zogol33IpOJBaRR5PxNfjwyRVehYTvlzPYquBEPGAXLeTmCCDTqU8qg8GZ6OYDpy49 XuSjg9tDbbuAWdjxhaTwRhXrYp7H8wU/huH4eTHAqsjzgljDS1oWHtXlMM7x8mlSW2aS zSUDKzrlP0/Fx0oBqaaKuqlhuXi4QNne8F0pAVgc1tRuAlEOC/NZn3zDuUhMI2OLfYbv E+sPaKeHj5jU2tDzsiBDwy38WCxpmspVirrt0850fHm1fVoXtQ8HILJUezeHjGkC03WS avYP/iifLonis/3xCCPyEoE3kP6RKmqlRuRWoawvypqbERvakDT897pvKSW90LjsUqkZ BM7Q== X-Gm-Message-State: ACgBeo1RgkPcQIU/tLxB9he+UvKcP7Z3slWPCx9HZ5g909FvgvuAoKAB ArZCbfdiBEVlQ+h8vxsfLxs= X-Google-Smtp-Source: AA6agR6FZiUVW+xxZ6bJ1fDM3XNBa6jIJOXC2Vz5ah4v6fbPrUzzrVriACP6sWEJH2rQWOgeHxNyVg== X-Received: by 2002:a19:910c:0:b0:48a:eeb8:127b with SMTP id t12-20020a19910c000000b0048aeeb8127bmr1324799lfd.109.1660318546031; Fri, 12 Aug 2022 08:35:46 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j5-20020ac24545000000b0048b28acab8csm252393lfm.64.2022.08.12.08.35.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 08:35:45 -0700 (PDT) Message-ID: Date: Fri, 12 Aug 2022 22:35:44 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [BUG] org-attach-id-ts-folder-format fails on customized IDs [9.6 (9.6-??-2e9999783)] Content-Language: en-US To: Janek F , "emacs-orgmode@gnu.org" References: From: Max Nikulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12b.google.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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" 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=1660319275; 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=8FodbNniKEJPdaOKI5JfVlAZKqZF6DgsJ+SRT3cT++k=; b=rLbIcwH7RWLt3sdKRe3W4c/VWncbZyk0dRIl2temlLuNv1x47lJywe9YhKwvA6K1YN3OQb yi+FoW5Q7DNwLb3xDje3AXJxi8/FtXoVv7Vqo5bkyzQucLqUpfXfyGru8dFJydeoZ2sDpG Uxi+eQN3ldLI7gAeOTxa20DSdpVJJnhgljlv+h2YJmawaopvevQoJEe0odeY4p9g50oz14 gE+3poAvFDY5Y+hWr8MFFksLN71AmtyjQZlWtsDymthcCiKidtwAd0fzijFU5YeRCd48iQ BLG4mOOSLygint8axwIZs0/CJ1PHDqFDfh8hiM9WhMtRpgFmCSt4elIrGPhkcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660319276; a=rsa-sha256; cv=none; b=f7hKbQmOuFIUMfGcP6aazGr0i9+y23ntXGAK8rukn7UFkRR/IAvfMP3CMazk+nuaI/Dg+l /x6NizpFHJG+XYkw+9gM5jzfRoOTWfPUaJaeSkej9aSx1hMRbudgRym6pn0e/9mSxF6AoU LvjEM0dSbbOCzyVMEy0vMFOre0OvNUZmPwaQgCrzMLXA1UH5VsNRi/xIzLqert8SwHxojj Nq+gul5aYlTXgbXT4TT4DAl8AkqvDX03IwZ99UaADIoOiCCjiOwxJN5VEQAExzPfUwmqBG cU4ROrHciSzCeu9qyLU9KYE8R35ip1W2RyZxQ499GZ5+MRhOZZAhJ1GSorlnLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=evzlsmw3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 7.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=evzlsmw3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: E5B4A889 X-Spam-Score: 7.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: FFhGp9LNL/vw 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.