From mboxrd@z Thu Jan 1 00:00:00 1970 From: Louis Turk Subject: Re: Control loading org-mode Date: Wed, 27 Oct 2010 20:24:24 +0800 Message-ID: <4CC819F8.5020104@dayspringpublisher.com> References: <4CC79C7C.6060205@dayspringpublisher.com> <3320.1288152994@gamaville.dokosmarshall.org> <4CC7AD64.9030002@dayspringpublisher.com> <7751.1288157065@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=40454 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB5Ev-0000dk-Iw for emacs-orgmode@gnu.org; Wed, 27 Oct 2010 08:36:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PB55Y-0003td-Py for emacs-orgmode@gnu.org; Wed, 27 Oct 2010 08:27:38 -0400 Received: from cpoproxy3-pub.bluehost.com ([67.222.54.6]:46521) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PB55Y-0003qj-H7 for emacs-orgmode@gnu.org; Wed, 27 Oct 2010 08:26:44 -0400 In-Reply-To: <7751.1288157065@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com, emacs-orgmode@gnu.org On 10/27/2010 01:24 PM, Nick Dokos wrote: > Louis Turk wrote: > >> Hi Nick, >> >> Thanks for responding. >> >> On 10/27/2010 12:16 PM, Nick Dokos wrote: >>> Louis Turk wrote: >>> >>>> Is there any way to prevent org-agenda files from loading except when >>>> visiting files with the org extension? >>>> >>> Care to be a bit more explicit? >>> >>> Thanks, >>> Nick >>> >> I'm trying to implement this: http://doc.norang.ca/org-mode.html >> >> Everything is fine the first time I load emacs. But if I load a second >> instance of emacs I get an error: >> >> Debugger entered--Lisp error: (file-locked "/home/lat/org/refile.org" >> "lat@lat-a-ws (pid 8146)") >> signal(file-locked ("/home/lat/org/refile.org" "lat@lat-a-ws (pid >> 8146)")) >> byte-code("\306\211\211 G\307V\203 >> >> This is very irritating, as I often have 4 or 5 instances of emacs open >> at the same time. >> >> So, it would be much better for me is org-mode code didn't try to load >> at all except when I visit a file with the org extension. >> >> Is that possible? >> > You probably have a call to org-agenda or org-agenda-list somewhere in > your initialization file(s). Some people like that because it brings the > agenda up when emacs is started, but it does lead to the problem you > encounter. Eliminate it from your init file(s) and make it a habit to > invoke org-agenda or org-agenda-list explicitly: if you followed the > manual, the former is bound to C-c a and the latter is invoked through > the "a" key in the agenda dispatcher; since I usually start with that, > I bind it to a convenient key combination - in my case ( > is a prefix for a bunch of org-related keys). > > HTH, > Nick > You were right. That fixed it! Many thanks! Lou