From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4ArgL0I7aWOATwEAbAwnHQ (envelope-from ) for ; Mon, 07 Nov 2022 18:07:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kDr2L0I7aWO1oAAA9RJhRA (envelope-from ) for ; Mon, 07 Nov 2022 18:07:14 +0100 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 51DF62825A for ; Mon, 7 Nov 2022 18:07:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os5ZZ-0001XF-NA; Mon, 07 Nov 2022 12:06:10 -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 1os5ZW-0001VP-Oi for emacs-orgmode@gnu.org; Mon, 07 Nov 2022 12:06:06 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1os5ZU-0003Fj-9A for emacs-orgmode@gnu.org; Mon, 07 Nov 2022 12:06:06 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1os5ZP-0007HR-VO for emacs-orgmode@gnu.org; Mon, 07 Nov 2022 18:05:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: [PATCH] org-attach.el: ID to path functions may return nil Date: Tue, 8 Nov 2022 00:05:51 +0700 Message-ID: References: <87k084v1wa.fsf@localhost> <871qtxhsm6.fsf@localhost> <87a68ce32u.fsf@localhost> <871qtodygs.fsf@localhost> <87v8qz9zui.fsf@localhost> <35cbf452-c3ed-d97f-db96-dcae57463eff@gmail.com> <87wnbc7ltm.fsf@localhost> <87bksn1nl1.fsf@localhost> <87sfk6zixs.fsf@localhost> <874jwiakpn.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------J0pAsGRfjqz4kAuF7iqax3N4" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US In-Reply-To: <874jwiakpn.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667840834; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=P5MdA3XiwkHhZl44erUVOOpkzYqxUJIaNPPzAOMg8ws=; b=M/sLlRWyXEfbE8ssG54jz2c/tOLtCDbrCqZWeZgTHcVSP7x1Sz6hSzvx6XVq65oFOfIU/E EMBO2ttHhJodhSo9Yre1GDgoNABIlUzjYHiNaz0YQWkqgBGvMfEjnmXeytiJjnzRXxLJxu 7we2pA0D4xVDEbqkcjImowg25KM6clHjuU1at2ZFV0bc3DXmAveKJ799YsUIe5V2JfZU7N NXIzwiojc6M3pkrVCdzhCuNqBtxa0EL/62JFwaSeMGqvw6Ku48VzvI1PMQ0pK0yZs1tD7A 3ftTeQnC7sZ8Ocs/VENCMLyNMiuIuvx1kSVnDR+Nz42C/7mvnobd8pBTaKMyug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667840834; a=rsa-sha256; cv=none; b=Zcc5XbSaIcRxjPoqC+yfGzpW5ZUS9cRJ11k0rnZjIK09BsHD8SHOhy1Dx3ZCyjIgKk9O8t LeazZPcWWTGcN2oUq0pE0ujRDcuLaJQYRirj054hnjllBGeKi2+Qr0tiCg1PRsEX0FoLQ0 AbsSC1/Qt5O5ttIGNU7FE/72Kd3fJIRCQcMHbhNe48sUNrJqZkEtCgo7GHwLLJN4dT1p/J jeh55jBiKxOoVotP9nRtU+7OfQxVvY7NPXXLwGt18WgWVIhi6SiWXf+++8axdEbqVPIQVr 1CKwrTQyT54Xe+ys4q3Kl9Dtu/Bp6fLRjM3X8szZOU2NkkWFaT0eWh/vYMxjGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: 2.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: 51DF62825A X-Spam-Score: 2.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: A7S6O5gaeiw8 This is a multi-part message in MIME format. --------------J0pAsGRfjqz4kAuF7iqax3N4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Ihor, I played with my patch for some time and the only issue I have noticed is missed backslashes in a docstring. On 05/10/2022 12:44, Ihor Radchenko wrote: > > AFAIU, your version of `org-attach-dir-from-id' may sometimes return > nil, which is neither documented "otherwise independently of TRY-ALL value return the first non nil value." indirectly assumes nil. It may be made more prominent. > nor expected by the callers. I see 2 direct callers and I am not aware of any problem with them. > In particular, `org-attach-dir-get-create' will throw unhelpful "No > attachment directory is associated with the current node" error. * H short :PROPERTIES: :ID: ec :END: if: No attachment directory is associated with the current node, adjust ‘org-attach-id-to-path-function-list’ I do not think this message is unhelpful. > `org-attach-dir' appears to handle nil return value fine. --------------J0pAsGRfjqz4kAuF7iqax3N4 Content-Type: text/x-patch; charset=UTF-8; name="0001-org-attach.el-ID-to-path-functions-may-return-nil.patch" Content-Disposition: attachment; filename*0="0001-org-attach.el-ID-to-path-functions-may-return-nil.patch" Content-Transfer-Encoding: base64 RnJvbSAxOWU1MWEwMTEyMzUzYTM3N2RlZWY2NGE4M2MwMmM1ZWUzOTNhMTVkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXggTmlrdWxpbiA8bWFuaWt1bGluQGdtYWlsLmNv bT4KRGF0ZTogTW9uLCA3IE5vdiAyMDIyIDIzOjQ4OjAyICswNzAwClN1YmplY3Q6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cnktcCBjYW5kaWRhdGUpKQorICAgICAgICAgICAg ICAoc2V0cSBwcmVmZXJyZWQgY2FuZGlkYXRlKQorICAgICAgICAgICAgKHVubGVzcyBmaXJz dAorICAgICAgICAgICAgICAoc2V0cSBmaXJzdCBjYW5kaWRhdGUpKSkpKSkKKyAgICAob3Ig cHJlZmVycmVkIGZpcnN0KSkpCiAKIChkZWZ1biBvcmctYXR0YWNoLWNoZWNrLWFic29sdXRl LXBhdGggKGRpcikKICAgIkNoZWNrIGlmIHdlIGhhdmUgZW5vdWdoIGluZm9ybWF0aW9uIHRv IHJvb3QgdGhlIGF0dGFjaG1lbnQgZGlyZWN0b3J5LgotLSAKMi4yNS4xCgo= --------------J0pAsGRfjqz4kAuF7iqax3N4--