emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* using variables in  org-publish-project-alist
@ 2008-11-24  1:45 Richard Riley
  2008-11-24 10:11 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Riley @ 2008-11-24  1:45 UTC (permalink / raw)
  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 "<link rel=stylesheet
|                      href=\"./style.css\"
|                      type=\"text/css\">"
| 	 :auto-preamble t
| 	 :auto-postamble t
| 	 :preamble (format "<div id='Content'><a href='../'>Back</a> - <a href='%s'>Home</a>" rgr-home)
| 	 :postamble "</div>"
| 	 :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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-25  0:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24  1:45 using variables in org-publish-project-alist Richard Riley
2008-11-24 10:11 ` Carsten Dominik
2008-11-24 11:59   ` Richard Riley
2008-11-24 23:58     ` Sebastian Rose
2008-11-25  0:09       ` Richard Riley
2008-11-25  0:35         ` Sebastian Rose

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).