From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Moyer Subject: Question about org-publish-project-alist Date: Tue, 14 Apr 2015 08:51:57 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142e02a577bbf0513aeb352 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi0KP-0005zj-Er for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 08:52:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yi0KO-0000M0-89 for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 08:52:33 -0400 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:33352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi0KO-0000Lp-3l for emacs-orgmode@gnu.org; Tue, 14 Apr 2015 08:52:32 -0400 Received: by qkx62 with SMTP id 62so17131567qkx.0 for ; Tue, 14 Apr 2015 05:52:31 -0700 (PDT) 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 --001a1142e02a577bbf0513aeb352 Content-Type: text/plain; charset=UTF-8 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 Thanks. Tom --001a1142e02a577bbf0513aeb352 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is it possible (and I just have the wrong syntax) to do th= e following:

(defvar base-dir "~/Documents/org= /")
(defvar pub-dir "~/Public/notes/")
<= br>
(setq org-publish-project-alist '(
=C2=A0 =C2= =A0 ("org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :base-directory = base-dir
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :base-extension "org&qu= ot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :publishing-directory pub-dir
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :recursive t
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 :publishing-function org-html-publish-to-html
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 :exclude "level-..org"
=C2=A0 =C2= =A0 )
=C2=A0 =C2=A0 ("static"
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 :base-directory base-dir
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|sw= f"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :publishing-directory pub-dir=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :recursive t
=C2=A0 =C2=A0= =C2=A0 =C2=A0 :publishing-function org-publish-attachment
=C2=A0= =C2=A0 )
(&qu= ot;project-root" :components ("org" "static")))
)

When I have the above code and I call (o= rg-publish-project "project-root"), I get the following error.

Wrong type argument: stringp, base-dir

Thank= s.

Tom
--001a1142e02a577bbf0513aeb352--