From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pip Cet Subject: Re: Emacs batch and bbdb Issue Date: Tue, 18 Aug 2015 20:56:26 +0000 Message-ID: References: <86egj0z7f5.fsf@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRnvo-0004xq-1A for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 16:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRnvn-00069w-6b for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 16:56:27 -0400 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:34529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRnvn-00069s-1w for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 16:56:27 -0400 Received: by iodb91 with SMTP id b91so203777945iod.1 for ; Tue, 18 Aug 2015 13:56:26 -0700 (PDT) In-Reply-To: <86egj0z7f5.fsf@mac.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Aric Gregson Cc: emacs-orgmode@gnu.org I've had the same problem, and I found it a little hard to find the right thing in the source code, so maybe this helps: I think what you want is "(setq create-lockfiles nil)", which doesn't steal the lockfile but ignores it; if you need to make sure it's stolen, try overriding `ask-user-about-lock'. Of course, file locking is there for a reason, so I strongly suggest making sure your bbdb is being backed up regularly before trying this. On 8/18/15, Aric Gregson wrote: > Hello, > > I have cron set up to send me an email with my org calendar each morning > as follows: > > /usr/local/bin/emacs --batch -l ~/.emacs --eval '(org-batch-agenda "a" > org-agenda-span (quote day))' > > It works fine unless Gnus starts running. When that happens, bbdb is > taken by Gnus and then the emacs --batch gets stuck because it wants to > know if emacs should steal the bbdb file. > > I use diary in org. I am not sure if there is a way to not use bbdb file > and still use diary? Is there a way to make stealing the bbdb file the > default for emacs upon start-up? > > Thanks, Aric > > -- > ~O > /\_, > ###-\ |_ > (*) / (*) > > >