From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angus Gibson Subject: org-batch-agenda lock problem Date: Tue, 9 Jun 2009 20:40:26 +1000 Message-ID: <1D7BAF3A-23E5-4FFD-B1BB-A65E7BC53E72@gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDyky-00083S-Vz for emacs-orgmode@gnu.org; Tue, 09 Jun 2009 06:40:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDyks-0007vb-KI for emacs-orgmode@gnu.org; Tue, 09 Jun 2009 06:40:39 -0400 Received: from [199.232.76.173] (port=39859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDyks-0007vM-26 for emacs-orgmode@gnu.org; Tue, 09 Jun 2009 06:40:34 -0400 Received: from rv-out-0708.google.com ([209.85.198.249]:57087) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDykr-0007BG-GX for emacs-orgmode@gnu.org; Tue, 09 Jun 2009 06:40:33 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1237393rvb.2 for ; Tue, 09 Jun 2009 03:40:32 -0700 (PDT) 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: emacs-orgmode@gnu.org I am a recent convert to org-mode, and the ability to export the agenda is very useful. Currently I have a script that runs every 10 seconds or so that calls: emacs -batch -l ~/.emacs -eval '(org-batch-agenda "a" org-agenda-ndays 1)' 2>/dev/null In order to put the agenda items on my desktop. This works fine, until I start to edit the org file. From what I have gathered, this causes a lock to be placed, and org-batch-agenda has a collision with this lock, resulting in no output because it's trying to output the message about resolving the collision. Obviously this isn't very useful, so I was wondering why org-batch-agenda would have to modify the file, or possibly the easiest way to resolve this (I'm not amazing with Emacs). Thanks, Angus