From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Handling errors in command line exporting of agenda? Date: Mon, 8 Aug 2011 13:12:59 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqUJz-0005bX-8J for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 14:13:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqUJx-0001EX-RB for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 14:13:03 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:52843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqUJx-0001ET-Mk for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 14:13:01 -0400 Received: by fxg9 with SMTP id 9so5012691fxg.0 for ; Mon, 08 Aug 2011 11:13:00 -0700 (PDT) In-Reply-To: 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: suvayu ali Cc: emacs-orgmode On Fri, Aug 5, 2011 at 6:34 PM, suvayu ali wrote: > Hi John, > > On Sat, Aug 6, 2011 at 12:15 AM, John Hendy wrote: >> 1) writing a script that could handle the failure and leave the >> current agenda exported text file if it happened >> > > Do you run into the same problem if you one the file before hand in > read only mode? Something like this before the agenda command might > work. > > (find-file-read-only "FILENAME") How would I do this via the command line? Also, it's pulling from about 10 project files, so I'm not sure if I'd have to do this for every file or how that works since the org-batch-agenda command seems to be pulling from all of them. Perhaps there's some way to trigger emacs to think, "Everything is read-only from here out"? Thanks, John > > -- > Suvayu > > Open source is the future. It sets us free. >