From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Handling errors in command line exporting of agenda? Date: Mon, 08 Aug 2011 18:17:12 -0400 Message-ID: <7767.1312841832@alphaville.americas.hpqcorp.net> References: <4691.1312835858@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqY8O-0000OK-Gp for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 18:17:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqY8I-0004MN-U2 for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 18:17:19 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:20497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqY8I-0004LR-7L for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 18:17:14 -0400 In-Reply-To: Message from suvayu ali of "Mon, 08 Aug 2011 23:30:41 +0200." 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: nicholas.dokos@hp.com, emacs-orgmode suvayu ali wrote: > Hi Nick, > > On Mon, Aug 8, 2011 at 10:37 PM, Nick Dokos wrote: > >> > As far as I know, emacs accepts any wildcard that is valid in the shell. > >> > Since all your files are in ~/org, I would say try "~/org/*.org". The > >> > '~/org/' limits it to files within your org directory and the '*.org'[1] > >> > limits it to all files with a .org extension. > > > > Not true - if you want wildcards expanded, you have to do it yourself. > > E.g. C-h f file-expand-wildcards > > I should have been more precise. I meant to say in the context of the > current function or other functions which _accept_ wildcards as valid > arguments. Of course internally they use file-expand-wildcards, easily > verified by looking at the source of find-file. :) > No, you were precise enough, but I was too careless to see it (and of course *knew* that find-file does not expand wildcards, even though the last time I looked at the code or its doc was probably 20 years ago: I have an inherent bias to assume that things don't change after I learn about them :-) ). You are right about find-file and friends re wildcards. I don't know why this does not work: $ emacs --batch --eval '(progn (find-file-read-only "~/lib/org/*.org" t) (org-batch-agenda "t"))' 2>/dev/null Global list of TODO items of type: ALL Available with `N r': (0)ALL and nothing after it, but when I evaluate (org-batch-agenda "t") in the running emacs, I get everything. Nick