Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Rust Buckett Newsgroups: gnu.emacs.help Subject: Re: Org mode ID update locations Date: Fri, 09 Jan 2026 23:20:05 -0500 Organization: A noiseless patient Spider Lines: 43 Message-ID: <87qzryf6a2.fsf@pm.me> References: <87wm8mw92o.fsf@fakedomain.nope> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 10 Jan 2026 04:20:06 +0000 (UTC) Injection-Info: dont-email.me; posting-host="095466ac6b957781247ca26f1a59de4b"; logging-data="3052065"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ldvA1mEhXcr9YSLVEPgxmp2TB8gfX3eM=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:DSAohSA3ar8qobq2eTXC2oi2EUo= sha1:9GxSXKvnxTZTRxOsBqTeAJZj+Ag= Xref: csiph.com gnu.emacs.help:61042 Borax Man writes: > On 2025-07-05, Rust Buckett wrote: >> --==-=-= >> Content-Type: multipart/mixed; boundary="=-=-=" >> >> --=-=-= >> Content-Type: text/plain >> Content-Transfer-Encoding: quoted-printable >> >> Do all of the file have an Org ID? I use this primarily in Org Roam, so I'm >> not really sure where one ends and the other begins, but, after looking at = >> the >> function description, org-id-update-id-locations scans for IDs. It's in the >>:PROPERTIES: drawer at the top of the file. If it's not there, it can be >> created with org-id-get-create. >>=2D-=20 >> this is my clever sig. >> > > [...] > > No, but more than the two which are scanned do. > > I've found this elisp function on the web which will scan under a > directory tree. > > (defun org-roam-update-ids () > "Update all org-ids in org-roam-directory." > (interactive) > (org-id-update-id-locations > (directory-files-recursively org-roam-directory "\\.org$"))) > > If I call this, I get the behaviour intended. All the files are > scanned. > > I'll consider this solved! Huh. I thought org-roam-db-sync would descend into a dir tree. Glad you figured it out! -- this is my clever sig.