From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: list of agenda files in a file Date: Fri, 19 Sep 2014 09:08:33 -0400 Message-ID: <87sijnwyem.fsf@pierrot.dokosmarshall.org> References: <8761gkax3l.fsf@gmail.com> <87ha03ub9a.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUxvp-0001us-Nu for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 09:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUxvh-000833-Oj for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 09:09:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:37889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUxvh-00082U-IU for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 09:08:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUxvb-0006ar-Dx for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 15:08:47 +0200 Received: from pool-108-20-41-17.bstnma.fios.verizon.net ([108.20.41.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 15:08:47 +0200 Received: from ndokos by pool-108-20-41-17.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 15:08:47 +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: emacs-orgmode@gnu.org hymie@lactose.homelinux.net writes: > Eric S Fraga writes: >> >>> (setq org-agenda-files (quote ("~/org/agenda.file.list"))) >> >>which sets the variable to a list of one string, which is *not* what you >>want. Try >>(setq org-agenda-files "~/org/agenda.file.list") > > Ohhhhh. Thank you very much. > > I have and/or see things like this: > (setq org-tags-exclude-from-inheritance (quote ("crypt"))) > org-agenda-span (quote month) > org-agenda-files (quote ("~/org/project.org")) > > and I know that "cons" makes a list. I didn't realize that "quote" > also makes a list. > `quote' does not make a list - it just prevents evaluation. It's the inner parentheses you used that made it into a list. (setq org-agenda-files (quote "~/org/agenda.file.list")) would work fine, but since strings evaluate to themselves, the quote is unnecessary in this case. The point is that lisp generally evaluates arguments to function calls *before* calling the function (there are things called "special forms" that do not follow this general rule: e.g setq is a special form that does not evaluate its first argument). So if you want to call a function but not evaluate its argument, you have to quote the argument. -- Nick