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 iK/3EfVT2GKnkQAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 21:13:57 +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 sB8AEvVT2GI7mAAA9RJhRA (envelope-from ) for ; Wed, 20 Jul 2022 21:13:57 +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 15D1F620E for ; Wed, 20 Jul 2022 21:13:57 +0200 (CEST) Received: from localhost ([::1]:60928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEF8t-00037j-PP for larch@yhetil.org; Wed, 20 Jul 2022 15:13:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEF8E-00036F-Ot for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 15:13:17 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:34108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEF8C-0001Ee-Lp for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 15:13:14 -0400 Date: Wed, 20 Jul 2022 19:12:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1658344389; x=1658603589; bh=xa1qChRK21NNoilC+MGZua25gdcaMT7pBOJMMtdf4RI=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=FZej3RC7izMGT2Jb0ApZY3tZdgIu53aO0BgK392WKz2tzBRWnZsgMIdHv7gM76qev yyrv7ohBlusQlhWhuyKt8bwFiaTQNICIfklkb543fPnf3hPd8X2l8By6iwxhj7yi/h hFUujzao+8XD4PDDEVNRtZv/w6wjTC10d4LNQy3d49KwSv2I88g3DGJBzBpQ+hm70G HCjqBNhI5PiKx08DF/kS9Ztx950gwl+jLnambR5WVwxfcBG5XMYb2qbVIZoLQqzmPj JBfL8kj81QgbITPeh6IpHqgqq7CKY1I2HFwusDF+DSPB2R3E6XXB+tMoJS19wkZvAM DyBuvS7uqm/TA== To: "emacs-orgmode@gnu.org" From: Janek F Subject: [BUG] org-attach-id-ts-folder-format fails on customized IDs [9.6 (9.6-??-2e9999783)] Message-ID: 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=185.70.40.134; envelope-from=xerusx@pm.me; helo=mail-40134.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-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=1658344437; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xa1qChRK21NNoilC+MGZua25gdcaMT7pBOJMMtdf4RI=; b=eQP09PlcZqzyuEvu5YOmeS13e5BPVq8N5uvtychRONbSdLv2Mp941l6ofp5c279ejCSSwQ p6HxN66Htbg5GoLT+spbQLd95tROn0UbH5i+kQ2TOtAm7/TxirEnzq8RXkOClhzyHIfzT/ TlCQa6oBjmiTDhfqT8Y6pbMWyAl8cAmzHn2Aio+gGcC/c30DkSN22sD8GTmCxEK8ThH5St 9nVF+RV8heugQfG0qe2CiocztDhL43FYpKUXLb9MCJR5YsxCSWy1fgGKTcR07lNF/QGkQ6 TL+2TdyN94zI9g8R0uzzAJuXDK35HTSYn7af1UvI0OyWKZWjLyn/JJc9mn6ESA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658344437; a=rsa-sha256; cv=none; b=mVx0T7CwhjVJvhH6qKxD67D80Y6H6gDOJ6YEtFCdxoA/N7L+19DQ6q7+68I+fQsxbQNjLo dPBVCs2a0mPm+AUW85zlULf41ro/7p56N8k0RY+bQ7uczmGV4SycFrAY8QTaSU5ZvmLsSf PUR+E1HBQbksH2YsPO62J6XmZ0qi18qvMiO2pOMfkp4eRg0Amue/Wvy7YaOW8IrgeUgofG CQZ7dWEQ1HRRkkgYh3iUnPWABmJXCw1+CmNUKtoONDV/iWWko8Ehf0ZL/mp/b4odWF1QWV ZqRtKIj/isUG2Y6+3d6bHV71m4ff7D/PhCUqlcQl66tuWO+8iTDUFVqntPVrrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=FZej3RC7; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=FZej3RC7; 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: 15D1F620E X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8PntStvXhEO9 When setting org-id-method to 'ts or 'org, org-attach seems to use org-attach-id-ts-folder-format to create its hierarchy. 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: =C2=A0 =C2=A0 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. Regards, Janek