From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Disable agenda file autoload? Date: Thu, 28 May 2009 01:38:09 -0500 Message-ID: <20090528063809.GV10324@thinkpad.adamsinfoserv.com> References: <20090528053448.GU10324@thinkpad.adamsinfoserv.com> <1D89E96D-B0FC-4956-B848-C906F012B25A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9ZFm-0000Pa-MT for emacs-orgmode@gnu.org; Thu, 28 May 2009 02:38:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9ZFl-0000OH-2i for emacs-orgmode@gnu.org; Thu, 28 May 2009 02:38:14 -0400 Received: from [199.232.76.173] (port=40857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9ZFk-0000OA-PP for emacs-orgmode@gnu.org; Thu, 28 May 2009 02:38:12 -0400 Received: from squirtle.drak.net ([72.52.144.201]:34183) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9ZFk-0000Py-Ar for emacs-orgmode@gnu.org; Thu, 28 May 2009 02:38:12 -0400 Received: from 206.180.154.148.adsl.hal-pc.org ([206.180.154.148] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1M9ZFg-0001CX-Td for emacs-orgmode@gnu.org; Thu, 28 May 2009 01:38:09 -0500 Content-Disposition: inline In-Reply-To: <1D89E96D-B0FC-4956-B848-C906F012B25A@gmail.com> 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: Org Mode List I just tried an example, here's what happens. - Start first emacs session for Org, call agenda to build my agenda - Change anything in any buffer that is in the agenda list - Open another emacs - Because I don't have org set to require, it only loads on demand, no issues yet - Open another .org file that is not on the agenda list, which triggers the load of org-mode - I get a popup warning me that another emacs session has the agenda file locked Notice I wasn't trying to build the agenda on opening the other file. I'm inclined to believe that Org is autoloading all the agenda files during initialization. If it didn't load the agenda files until the agenda was called interactively, that'd fix the problem. I may cause this again with another issue, I have a timed job that rebuilds the agenda at midnight because I leave my sessions open for days at a time. If that calls at the midnight boundary, it should cause this problem. I may still have to use a separate config, or a hook for agenda that I set the load list just prior to invoking agenda. Carsten, if you'd like I can send you my .emacs file direct to verify that isn't causing the problem. Thanks. On Thu, May 28, 2009 at 07:43:32AM +0200, Carsten Dominik wrote: > > On May 28, 2009, at 7:34 AM, Russell Adams wrote: > >> I tend to run multiple emacs sessions and I've noticed that if I load >> Org (no I do not require it on each load), that I get lock contention >> on agenda files. >> >> Only one of these emacs instances is used for Org, I keep an Org >> session up separate from my coding... >> >> Is there a way that I can configure Org to not load the agenda files >> until the first time the agenda is called? >> >> Perhaps just by delaying setting the agenda file list until the agenda >> is called by hook? >> >> My only other option would be to use a separate config for the Org >> window vs the others. >> >> I welcome suggestions. > > I believe the agenda files are only loaded for agenda > and related commands, i.e. commands that also need to access > the agenda files. It is definitely not so that loading the Org > package will load the agenda files. Or am I wrong here??? > Maybe you are running org-agenda-to-appt or something like this? > > - Carsten > ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3