From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Question about org-publish-project-alist Date: Tue, 14 Apr 2015 09:10:55 -0400 Message-ID: <878uduj1nk.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi0cO-0001k0-LL for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 09:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yi0cJ-0006f7-2P for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 09:11:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:57070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi0cI-0006ek-St for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 09:11:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Yi0cG-00006Y-NB for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 15:11:00 +0200 Received: from pool-108-7-223-120.bstnma.fios.verizon.net ([108.7.223.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Apr 2015 15:11:00 +0200 Received: from ndokos by pool-108-7-223-120.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Apr 2015 15:11:00 +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 Thomas Moyer writes: > Is it possible (and I just have the wrong syntax) to do the following: > > (defvar base-dir "~/Documents/org/") > (defvar pub-dir "~/Public/notes/") > > (setq org-publish-project-alist '( >     ("org" >         :base-directory base-dir >         :base-extension "org" >         :publishing-directory pub-dir >         :recursive t >         :publishing-function org-html-publish-to-html >         :exclude "level-..org" >     ) >     ("static" >         :base-directory base-dir >         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" >         :publishing-directory pub-dir >         :recursive t >         :publishing-function org-publish-attachment >     ) > ("project-root" :components ("org" "static"))) > ) > > When I have the above code and I call (org-publish-project "project-root"), I get the following error. > > Wrong type argument: stringp, base-dir > You need to use backquote instead of quote and commas wherevern an "inner" variable needs to be evaluated. See (info "(elisp) Backquote") Nick