From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cC2KGdLK92L6CgAAbAwnHQ (envelope-from ) for ; Sat, 13 Aug 2022 18:01:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kC6CGdLK92JtWAAA9RJhRA (envelope-from ) for ; Sat, 13 Aug 2022 18:01: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 0826E9B02 for ; Sat, 13 Aug 2022 18:01:22 +0200 (CEST) Received: from localhost ([::1]:54994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMtZh-0005Sb-1F for larch@yhetil.org; Sat, 13 Aug 2022 12:01:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMtXo-0005RK-Bb for emacs-orgmode@gnu.org; Sat, 13 Aug 2022 11:59:26 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:37843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMtXm-0001U7-No for emacs-orgmode@gnu.org; Sat, 13 Aug 2022 11:59:24 -0400 Received: by mail-lf1-x135.google.com with SMTP id u1so4990280lfq.4 for ; Sat, 13 Aug 2022 08:59:21 -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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=S3mauSS8BeY3rtnSkEa0k/dH9dx+404D5ZiIdNi5XkU=; b=p1Xg8MICaHpKB76O1Ay21CY6LHKTbM5YIu431BgLf8DfpA7yVLINb27jxEMgDSwZww 0gVpICRbsU91PJppeRv/L8adbZN3iw07mlS1tocZrSkb4Pe9YftNJQcNIN20jeIJHdmn Nud6SY4TdDomo4OwwPgHn7Z043a7vDLLLEm+Fu3YQvpYDxAM0523zprlJIPDAENQ+Bsi wGy+8xeND82DWUDO8j02u8jOTSY8l83+MLqYhBxGtHvb18YkGqiTSFyWU0RKMbrNyUjp YD0kMpXDKtTh8lO0x/FYvRUuRi43ZIRDwGd0CaG0OwPuNGZzGvNxBYPuOIzSQQKBIUFi AwKw== 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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=S3mauSS8BeY3rtnSkEa0k/dH9dx+404D5ZiIdNi5XkU=; b=oZyox2cMrUZtSOoqSBOsvSt5raDOZ1sxFPLGGK1t0lTQFIaqvmqv9gJPcMV/Qn/eYJ 21cgJRSh9ofXTckFKqa5m84Jt2Hqjs22J6+CszuUpIqUjL6v52lVFi/Z0sDXyGLEWbt8 oQ/ZI/DKcwGp4P9/Enu0k71GXQ4vjJ7N39J3sg1ecTozctHW678eKL/OMl2SpYm5r+J1 AeSmYDfSI5lR/HwSXyxHtEPzl69WoX7ZIGep6Gdbz7TWxkwXIeN+6x4W4CpmYakMKNw0 fMZaxx4HLiETwevRzCK748y3uo1TkuoR7CtnJjeaaut0wKyN/7Hi23xcdLFzZLnyVhHn qwNw== X-Gm-Message-State: ACgBeo37U25CfwjhyD+Zx0RJw5yzIuMw3IUB+wzMGFkov1spF3ey+Q0f QKr9Yny0JLiGQwQJoSKVLQ8= X-Google-Smtp-Source: AA6agR7IHMNwQDPL4pnZ9GC2kILxGIzN0tx3Un0ZJo+RqThSGBfr7WVtpoRI8jOMTAbrNY8LtT7onQ== X-Received: by 2002:a05:6512:3085:b0:48c:fcf8:18ab with SMTP id z5-20020a056512308500b0048cfcf818abmr3002282lfd.113.1660406360366; Sat, 13 Aug 2022 08:59:20 -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 v5-20020a2e2f05000000b0025e4dcc48b1sm781772ljv.19.2022.08.13.08.59.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Aug 2022 08:59:19 -0700 (PDT) Message-ID: <114c31b1-b4f4-80b1-50d0-d6f46b84effc@gmail.com> Date: Sat, 13 Aug 2022 22:59:18 +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 Cc: "emacs-orgmode@gnu.org" References: <8g4g55i6XsG-C0vN8LdPLL-p4BxnXTCU8wzPQ1eSYSFQu_Bl8joOYGD53lfOvoA7Po9TfZXdNXYsuOM_ToD8IVAZyr8SKxk2Yl2OpN4Xb1g=@pm.me> From: Max Nikulin In-Reply-To: <8g4g55i6XsG-C0vN8LdPLL-p4BxnXTCU8wzPQ1eSYSFQu_Bl8joOYGD53lfOvoA7Po9TfZXdNXYsuOM_ToD8IVAZyr8SKxk2Yl2OpN4Xb1g=@pm.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=manikulin@gmail.com; helo=mail-lf1-x135.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=1660406482; 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=S3mauSS8BeY3rtnSkEa0k/dH9dx+404D5ZiIdNi5XkU=; b=rkbnQllGiJJQ3F9U80wEtPUCaqrY+rcP8zIEwh3QmWvBVonEYjRtLJgXhY2FU9CVY75hgP nMQtsCpWu+40x1s1WZjG9++unaohGaudYXH/OLlmq++g3Y+tJO9l/wCWjhldOjB/JwdWpJ cdqWABUvzN1/5XbeCkb0+PXF93XTHtb1JAMWN9lnV9mR6gIUBkOq89JsXivfx60cvepivm 735y54SlVxTnHpKYbNhBIYiuDIZ2YkSYpdgsVKAFyRYQtkjmyYGhllbvINIJsblX83Z74y wzf+R6MvENJdBHUMMSKzVMr/6chGS5eh88pMH2fB8iBjTUWcdn/smJ7n5c3P4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660406482; a=rsa-sha256; cv=none; b=p/uMbv3UP85bQ1GhrfaXZ+7cWAft6v96NFcJTQWZ4QU+Rqr8V4QeMu5ErlueKhe6J3kqyg 1P+hZm/ER0KSq8faBpebPr5Qx7Awzjtx1PPn6KomxfA61V1vvNn3QBeoFVMmIXKcMOdZ2s C423dBP8QSbg3daJxApts6lvuYyXiOoxu1tvKStL6iy6b00GFoewrO4HtN17+VXU4Ufj2Y s+Gw0bJLCrTO3o9bQ7/mARmLM37CLQxt1qs4WP+OiaDJ+uiBJmGSzX3ztDAgsACGmVgtxM M+dI/Q4PMg82Aj9LZjzHb5YrenoYIWqtz8YI2fqZj/I4ny9vDv0zXVGQMj36PQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p1Xg8MIC; 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: 6.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p1Xg8MIC; 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: 0826E9B02 X-Spam-Score: 6.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: mA9dVSeCtOU5 On 12/08/2022 23:08, Janek F wrote: > I use org-roam which creates links between org-files using the ID, and I > would like to be able to manually add such links to common pages even if > autocompletion doesn't work smoothly. Unfortunately I have not tried org-roam yet. My suggestion is to add CUSTOM_ID property in addition to ID. I admit that CUSTOM_ID may be inconvenient if a heading is moved from one file to another. Are there more problems with CUSTOM_ID links? > 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 error out on ids in a different format. Janek, what is your expectation concerning directory structure for attachments in the case of customized ID values? You have not provided details concerning your configuration, but perhaps your issue may be solved by customizing `org-attach-id-to-path-function-list': keep `org-attach-id-uuid-folder-format' and drop `org-attach-id-ts-folder-format'. It should help unless you have single character IDs. I do not think Org behavior is ideal in your case. On the other hand the code was written with assumption that either UUID or timestamp-based IDs are used. It is violated by handcrafted IDs. I do not know the full story, but I guess, `org-attach-id-ts-folder-format' is present in default configuration for backward compatibility reasons. org-attach-id-ts-folder-format: Args out of range: "ftt", 0, 6 is an obscure error. However Org needs some hint from user how to handle such case.