0

I am having some trouble setting my org-publish blog. Basically I have the following config, but when I try to publish I get the following error:

Wrong type argument: stringp, (\, publish-directory-path)

So what this means to me is that, the :publishing-directory property is expecting a string, and I am not giving it a string, even though clearly the variable publish-directory-path is a string.

I have been going crazy with this. Any idea on what is happening?

(defvar publish-directory-path "~/Projects/Public/")

(setq org-publish-project-alist
      '(("org-notes"
     :base-directory "~/Projects/blog/"
     :base-extendion "org"
     :publishing-directory ,publish-directory-path
     :recursive t
     :makeindex t
     :html-postamble nil
     :publishing-function org-html-publish-to-html
     :auto-sitemap t
     :html-link-home "theindex.html"
     :html-link-up "theindex.html"
     :sitemap-filename "theindex.org"
    )
     ("org-static"
     :base-directory "~/org/"
     :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
     :publishing-directory "~/Projects/Public/"
     :recursive t
     :publishing-function org-publish-attachment
     )
     ("org" :components ("org-notes" "org-static"))
))
  • elisp tag doesn't apply here. Please read Elisp tag info – Muihlinn May 17 at 12:01
  • In order to allow some evaluation while quoting most of the expression, you need the comma construct which you are using but you also need to replace the initial quote ' with a backquote `, usually found to the left of the 1 key on US keyboards, but maybe somewhere else on your keyboard. – NickD May 17 at 12:17
  • 2
    This is one of the countless duplicates of threads where people discover how to use backquote. – wasamasa May 17 at 12:18
  • 2
    God dammit I though they were the same. Such a tricky detail – David Marques May 17 at 13:20
  • 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.