From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8D7/JlMl6WKvlQAAbAwnHQ (envelope-from ) for ; Tue, 02 Aug 2022 15:23:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qGEWJlMl6WIDGwEAG6o9tA (envelope-from ) for ; Tue, 02 Aug 2022 15:23:31 +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 235A3243BD for ; Tue, 2 Aug 2022 15:23:30 +0200 (CEST) Received: from localhost ([::1]:47846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIrrt-00031u-T1 for larch@yhetil.org; Tue, 02 Aug 2022 09:23:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIh3d-0002tk-AS for emacs-orgmode@gnu.org; Mon, 01 Aug 2022 21:50:53 -0400 Received: from mail-108-mta21.mxroute.com ([136.175.108.21]:43913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIh3a-0006sj-G2 for emacs-orgmode@gnu.org; Mon, 01 Aug 2022 21:50:53 -0400 Received: from filter006.mxroute.com ([140.82.40.27] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta21.mxroute.com (ZoneMTA) with ESMTPSA id 1825c3aec6c0000261.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Tue, 02 Aug 2022 01:45:41 +0000 X-Zone-Loop: 5153a004122577d2ff90177df1e70969b006a9365a7a X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zPFngzzJuS/9qRZ/MAo/pAJ3J0E9tp8Dk5YRVXNUg6o=; b=dBEwkiqU51qnRhk12GstLdV75M TmC7SL4tzjrYocm0oBPOEnbqknAaqs4It86pJB4kuaX+tMInBzFpyAF5wMvW8yOTtR/As+60Jc+Hz 6naKNmGHF0ZSP/v72yQ3rvAUKSmm/8tTDA2VXc5zKjKbFaohm4ILtIgK4hULuL0I8WBn69LgOCmJV C83h6i7I0fQuWGj7tGRormNYXkHpZA/cv/m82/9D+BnjmbFE8GANu8KrGb6ZwPxJ3skVbsFu0nPRA aeymV8WHxZSX1y0FcqMyRLJd6gD3KR0/UJLDyl7Rtq+njE6GZhaWsZXopUs3FWyIeN9yL3yjMhUEb 1h3phQVQ==; From: Jack Kamm To: emacs-orgmode@gnu.org Subject: Bug? org-id-find not finding some IDs Date: Mon, 01 Aug 2022 18:45:37 -0700 Message-ID: <87r11zifjy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-AuthUser: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.21; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta21.mxroute.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-Mailman-Approved-At: Tue, 02 Aug 2022 09:17:41 -0400 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=1659446611; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zPFngzzJuS/9qRZ/MAo/pAJ3J0E9tp8Dk5YRVXNUg6o=; b=ruG6bYmhvwBlT6iv2HH7ujJ/31DlZCTgRGG5EnFvkrJPQU9OYgLupvnH54YXWFLbMb6Bm2 3vwsXVQXFGla4MiUQMriPdymjOHCPfX7GnNtCPEPO3udhM4rJcjCGpfwbi7ug/Xhtum+3Q 6BR+QeeSOUdZOssv4kYokz0wmrmvTCBvGPEb0egkW4y9Id0a1SJdWbz0zqxJKEBx1HJmZ6 P2DXNo2nB5FddIyHXapREpiaQXIdmoKAzWFKgthOThRQ9+fQ1chCv+i+7XiR59/Bw9KQkJ dlMOCmH+6on3cjm6MXagrkrgosSj+LxyqYfDQ52858HPcjVmy7fOqWB29WXqiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659446611; a=rsa-sha256; cv=none; b=SyKp8IFn+pFRNC6jnwIyBmNhY2rha+xjumF+87utPPyTyT2BjI75Vtsp/Jg5sj6WeKk3s/ dKQyFgPSQVIp4ROEbXY7AyPY78g5iBkF+JzXTwqqD7ArbaHfODKqwX8+T4g2BK6FNmX0/G 8IrBUHptXfIGdC1mLtD3gK8VaDsRBqB4lfVw9IQEqzVM8E/FG6SflzhIrR5L8EKYBpffwx aYxTsM7IP10EohXY/LnbDkHsPFIoDlFlbVjquskawPq5n2W1QIhqCtMIFhfByzwCTyOsRW ZEK7H62qhvNdHjVzDiBprZIKKLJM8tQeyvLyYpnIm2mv29ekkSS7x/+pOfwzsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=dBEwkiqU; dmarc=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: 0.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=dBEwkiqU; dmarc=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: 235A3243BD X-Spam-Score: 0.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4tvHu3Pg33r+ Hello, The documentation for org-id-extra-files suggests that org-id-find should search in Org files visited by Emacs: > When Org reparses files to remake the list of files and IDs it is > tracking, it will normally scan the agenda files, the archives > related to agenda files, ... and any Org file currently visited by > Emacs. But, I've found that's not true, or maybe I'm misunderstanding the doc. For a minimal example, put the following in test.org: > * Headline 1 > :PROPERTIES: > :ID: b1569c92-3872-4ab9-80eb-274c4950991e > :END: Then: 1. emacs -Q test.org 2. C-x b *scratch* 3. M-: (org-id-find "b1569c92-3872-4ab9-80eb-274c4950991e") Which returns nil. Also, "C-h v org-id-files" doesn't contain test.org. Or maybe the docstring for org-id-extra-files should be rewritten to say "the current buffer" instead of "any Org file currently visited"? Also, this seems to be the cause of this bug in org-caldav, which is how I ran into it: https://github.com/dengste/org-caldav/issues/230 Would there a recommended mitigation for this on org-caldav's side? I'm thinking it could call (org-id-update-id-locations org-caldav-files) early on, to make sure org-caldav-files ends up in org-id-files. Tested on following versions: GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-07-10 Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/) Org mode version 9.5.4 (release_9.5.4-702-g5a49cc @ /home/jack/dev/org-mode/lisp/)