Hi François, pin...@iro.umontreal.ca (François Pinard) writes:
> I'm a rather recent Org mode user. Consolidating my previous data into > Org mode gave 385 files using 5,5 Mb. I quickly found out that this is > too much for Org mode, if I want to be able to search it all using Org > mode means. So, I segregated a handful of agenda files, and developed a > small tool for when I need a massive org search (which is often). Let > me share it, in case useful to others. For the code, see: > > http://stackoverflow.com/questions/6554110/emacs-outline-mode-auto-expand-upon-grep/8439425 > > The idea is simple: just use a recursive grep and normal compile-type > buffer and commands, yet add a bit of code to reveal hidden text which > is being located by the compile commands. Also manage so that a mere > C-s on the located buffer immediately show all occurrences. I guess your code runs faster, but you might be interested in M-x org-occur-in-agenda-files RET HTH, -- Bastien