emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Louis Turk <lou@dayspringpublisher.com>
To: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Control loading org-mode
Date: Wed, 27 Oct 2010 20:24:24 +0800	[thread overview]
Message-ID: <4CC819F8.5020104@dayspringpublisher.com> (raw)
In-Reply-To: <7751.1288157065@gamaville.dokosmarshall.org>

  On 10/27/2010 01:24 PM, Nick Dokos wrote:
> Louis Turk<lou@dayspringpublisher.com>  wrote:
>
>>    Hi Nick,
>>
>> Thanks for responding.
>>
>> On 10/27/2010 12:16 PM, Nick Dokos wrote:
>>> Louis Turk<lou@dayspringpublisher.com>   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\x18\x19\x1a\vG\307V\203\x19
>>
>> 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 -<f7>  <f7>  in my case (<f7>
> is a prefix for a bunch of org-related keys).
>
> HTH,
> Nick
>
You were right. That fixed it! Many thanks!

Lou

      parent reply	other threads:[~2010-10-27 12:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27  3:29 Control loading org-mode Louis Turk
2010-10-27  4:16 ` Nick Dokos
     [not found]   ` <4CC7AD64.9030002@dayspringpublisher.com>
     [not found]     ` <7751.1288157065@gamaville.dokosmarshall.org>
2010-10-27 12:24       ` Louis Turk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CC819F8.5020104@dayspringpublisher.com \
    --to=lou@dayspringpublisher.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).