On Friday, 23 May 2025 16:48:08 UTC Martin Edström wrote: > Hi > > I've made the package org-mem (https://github.com/meedstrom/org-mem), which > has its own parser.
Org-node seems very interesting! I noticed that your [parser.el](https:// github.com/meedstrom/org-mem/blob/main/org-mem-parser.el) is only about 600 lines long, whereas Org-mode’s parser seems larger and possibly more scattered? Are they roughly equivalent in scope/intent, or is your version focused on a different subset of Org features? Chris > > I'm wondering if it would be possible to write something similar to use > Org's own parse trees instead, since it does seem able to persist cache to > disk. > > Here's what I envision: > > - Let's say at init, you're given a list of 2,000 files not yet cached, or > where the mtime shows recent change - One or more async Emacs processes can > work over time to visit them, parse them, and write the cached parse tree > to disk - The main Emacs process can have an API for working with a cached > parse tree for a given file, without ever opening that file. - Packages can > then query things like "is there an active timestamp anywhere in these > 2,000 files" and get an instant answer. > > Before I write code -- is that realistic to do? > > Martin Edström