From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-agenda-files defvar directory "evaluation" ? Date: Mon, 10 Jun 2013 09:26:54 -0400 Message-ID: <874nd6ksf5.fsf@pierrot.dokosmarshall.org> References: <20130607161649.GA19899@grace.toshine.net> <20130610122945.17342ex1dq8imf8k@webmail.tuffmail.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um27v-00067U-F2 for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 09:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um27o-0006Xq-ES for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 09:27:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:52791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um27o-0006W9-88 for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 09:27:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Um27l-0005Pz-Mk for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 15:27:05 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 15:27:05 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 15:27:05 +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 'Mash writes: > Resolved this via stackoverflow. > > (setq org-agenda-files (list org-dir)) > Equivalently (setq org-agenda-files `(,org-dir)) That's a backquote (on a US keyboard, it's the key to the left of the 1 key in the top row), not a normal quote. See (info "(elisp) Backquote") The (list org-dir) form is quite readable here, but when things get more complicated, the backquote form tends to be more readable than manufacturing list structure by hand. > http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar-directory-evaluation/17021834 > > Quoting 'Mash : > >> ... >> But how would I do this with the variable? >> >> (setq org-agenda-files '(org-dir)) >> (setq org-agenda-files '(,(org-dir)) >> -- Nick