From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: using variables in org-publish-project-alist Date: Mon, 24 Nov 2008 02:45:59 +0100 Message-ID: <492a0781.1ade660a.31f9.26b3@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4R8G-00031m-OO for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 21:25:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4R8E-00031a-A3 for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 21:24:59 -0500 Received: from [199.232.76.173] (port=55144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4R8E-00031X-3f for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 21:24:58 -0500 Received: from mu-out-0910.google.com ([209.85.134.184]:65041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4QXF-0001rg-NY for emacs-orgmode@gnu.org; Sun, 23 Nov 2008 20:46:47 -0500 Received: by mu-out-0910.google.com with SMTP id i2so2027382mue.6 for ; Sun, 23 Nov 2008 17:46:43 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode I removed directory names from my projects list thus ,---- | (setq org-publish-project-alist | '( | ("web-extra" | :base-directory rgr-source ;; ********************************** | :publishing-directory rgr-publish | :base-extension "gif\\|jpg\\|jpeg\\|png\\|css" | :publishing-function org-publish-attachment | :recursive t | ) | ("web-org" | :base-directory rgr-source | :publishing-directory rgr-publish | :base-extension "org" | :publishing-function org-publish-org-to-html | :recursive t | :section-numbers nil | :style "" | :auto-preamble t | :auto-postamble t | :preamble (format "
Back - Home" rgr-home) | :postamble "
" | :author nil | ) | ("web" | :components("web-org" "web-extra") | ) | ) | ) `---- I included an external file: ,---- | (load-file "~/.emacs.d/.webvars") `---- where I declares the variables: ,---- | (setq rgr-source "/home/sh/webs/rgr/") | (setq rgr-publish "/ssh:rgr.net:/home/sh/webs/rgr/") | (setq rgr-home "http://rgr.net/default/") `---- C-h v on "rgr-source" gives ,---- | rgr-source's value is | "/home/sh/webs/rgr/" | | Documentation: | Not documented as a variable. `---- but when I publish the project or a project file I get this: ,---- | org-publish-get-base-files: Wrong type argument: stringp, rgr-source `---- I have a niggly feeling its going to be something obvious but what? thanks for any info, r.