From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shelagh Manton Subject: Re: Having (too) many files in org-agenda-files Date: Wed, 29 Sep 2010 13:39:00 +1000 Message-ID: <87fwwtte0b.fsf@gmail.com> References: <878w2lso50.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=52046 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0nVh-0006jI-Ae for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 23:39:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0nVg-0007wK-5y for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 23:39:13 -0400 Received: from lo.gmane.org ([80.91.229.12]:59942) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0nVg-0007w3-0P for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 23:39:12 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P0nVd-0005ix-T1 for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 05:39:09 +0200 Received: from 203.219.222.168 ([203.219.222.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Sep 2010 05:39:09 +0200 Received: from shelagh.manton by 203.219.222.168 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Sep 2010 05:39:09 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sébastien Vauban writes: > Hi, > > Of course, I have many, many files in Org mode. All files I write (or touch) > in fact. > > Of course, I would like to search through my files at some point in time. > I even would like to search through your files at some point in time, I mean > through =org-mode/contrib/babel= and =Worg= for example. [snip] > > You'll tell me: not a problem, you do that only once a day, and you use Emacs > client/server for the rest of the time. True. A bit, because I sometimes have > to restart Emacs for testing a fresh one (not impacted by defvars already > defined, or deffaces, etc.). > > Having to wait almost 4 minutes is a real pain. So, here my > comments/questions: > > - Isn't it possible to delay the fontification/ispell/etc. to when we really > display (i.e., pop up) the buffer? I guess this must be a major component > of the time this takes. > > - Couldn't we have 2 vars: =org-agenda-files= for the files you know you want > have scanned for the agenda construction, and an extra list such as > =org-search-files= for files not containing any dates? Then, some time > would have to be taken when =C-c a s=, but not before. And not if you don't > search for anything in your Org files during that Emacs session... > > Any other idea? I use the jit-lock package that comes with emacs. "Stealth fontifying" It makes font-lock only happen after the buffer is loaded and when you are not doing anything else. You can access the variables through customize-group RET jit-lock. It may be helpful here. Shelagh > > Best regards, > Seb