emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Emacs batch and bbdb Issue
@ 2015-08-18 20:08 Aric Gregson
  2015-08-18 20:56 ` Pip Cet
  0 siblings, 1 reply; 2+ messages in thread
From: Aric Gregson @ 2015-08-18 20:08 UTC (permalink / raw)
  To: emacs-orgmode

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
    /\_,
###-\  |_
(*) / (*)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs batch and bbdb Issue
  2015-08-18 20:08 Emacs batch and bbdb Issue Aric Gregson
@ 2015-08-18 20:56 ` Pip Cet
  0 siblings, 0 replies; 2+ messages in thread
From: Pip Cet @ 2015-08-18 20:56 UTC (permalink / raw)
  To: Aric Gregson; +Cc: emacs-orgmode

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 <aorchid@mac.com> 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
>     /\_,
> ###-\  |_
> (*) / (*)
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-18 20:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-18 20:08 Emacs batch and bbdb Issue Aric Gregson
2015-08-18 20:56 ` Pip Cet

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).