From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Question about org-publish-project-alist Date: Tue, 14 Apr 2015 15:05:27 +0200 Message-ID: <87egnmrhbc.fsf@mbork.pl> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi0X8-0008PB-O1 for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 09:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yi0X4-0004tO-0F for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 09:05:42 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:36430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi0X3-0004rg-P0 for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 09:05:37 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 3BC034F607B for ; Tue, 14 Apr 2015 15:05:34 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x0slCmEAUeDd for ; Tue, 14 Apr 2015 15:05:28 +0200 (CEST) Received: from localhost (unknown [IPv6:2001:808:114:6:5942:1079:b388:210]) by mail.mojserwer.eu (Postfix) with ESMTPSA id A03FC4F607A for ; Tue, 14 Apr 2015 15:05:28 +0200 (CEST) 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: emacs-orgmode@gnu.org On 2015-04-14, at 14:51, Thomas Moyer wrote: > 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 (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 > > Thanks. > Tom -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University