I tried to configure org-publish
with some html variables, but I'm getting this error let: Wrong number of arguments: plist-get, 3
. I've debug-on-error
enabled but doesn't show up the minibuffer.
This is my config .el
file.
(require 'ox-publish)
(require 'ox-rss)
;; Initial configuration
(setq project-source "~/org/blog/"
project-dest "~/org/public/"
website-url "blog.me")
(setq blog-head
"<link rel=\"stylesheet\" href=\"css/site.css\" type=\"text/css\">")
(setq blog-preamble
"<div class=\"nav\"><ul>
<li><a href=\"/\">Home</a></li>
<li><a href=\"/blog/index.html\">Blog</a></li>
<li><a href=\"http://github.com/NicolasPetton\">GitHub</a></li>
<li><a href=\"http://twitter.com/NicolasPetton\">Twitter</a></li>
<li><a href=\"/contact.html\">Contact</a></li>
</ul></div>")
(setq org-publish-project-alist
`(("org"
:base-directory "~/org/blog/"
:base-extension "org"
:publishing-directory "~/org/public/"
:publishing-function org-html-publish-to-html
:section-numbers nil
:with-toc nil
:html-head-extra ,blog-head
:html-preamble ,blog-preamble)
("posts"
:base-directory "~/org/blog/posts/"
:base-extension "org"
:publishing-directory "~/org/public/posts/"
:publishing-function org-html-publish-to-html
:section-numbers nil
:with-toc nil
:html-preamble ,blog-preamble)
("images"
:base-directory "~/org/blog/images/"
:base-extension "jpg\\|gif\\|png"
:publishing-directory "~/org/public/images/"
:publishing-function org-publish-attachment)
("js"
:base-directory "~/org/blog/js/"
:base-extension "js"
:publishing-directory "~/org/public/js/"
:publishing-function org-publish-attachment)
("css"
:base-directory "~/org/blog/css/"
:base-extension "css"
:publishing-directory "~/org/public/css/"
:publishing-function org-publish-attachment)
("rss"
:base-directory "~/org/blog/"
:base-extension "org"
:publishing-directory "~/org/public/"
:publishing-function (org-rss-publish-to-rss)
:html-link-home "http://blog.me"
:html-link-use-abs-url t)
("blog" :components ("org" "posts" "images" "js" "css" "rss"))))
backtrace
Resetting org-publish-cache
Loading /Users/elia/.emacs.d/.local/cache/org-timestamps/org.cache...done
Publishing file /Users/elia/org/blog/blog-setup.org using ‘org-html-publish-to-html’
Note: sgml-basic-offset, tab-width adjusted to 2
Saving file /Users/elia/org/public/blog-setup.html...
Wrote /Users/elia/org/public/blog-setup.html
Resetting org-publish-cache
Loading /Users/elia/.emacs.d/.local/cache/org-timestamps/posts.cache...done
Resetting org-publish-cache
Loading /Users/elia/.emacs.d/.local/cache/org-timestamps/images.cache...done
Resetting org-publish-cache
Loading /Users/elia/.emacs.d/.local/cache/org-timestamps/js.cache...done
Resetting org-publish-cache
Loading /Users/elia/.emacs.d/.local/cache/org-timestamps/css.cache...done
Skipping unmodified file /Users/elia/org/blog/css/styles.css
Resetting org-publish-cache
Loading /Users/elia/.emacs.d/.local/cache/org-timestamps/rss.cache...done
Publishing file /Users/elia/org/blog/blog-setup.org using ‘org-rss-publish-to-rss’
Saving file /Users/elia/org/blog/blog-setup.org...
Wrote /Users/elia/org/blog/blog-setup.org
let: Wrong number of arguments: plist-get, 3
so yes is ox-rss
the problem. I'm using this ox-rss.el locally
let
ofplist-get
.rss
publishing function looks suspect: the parentheses are probably wrong. Whether that's what's behind the error is unknown: you need to give us a backtrace as @Drew requested. Making sure thatdebug-on-error
ist
and runningorg-publish
should be enough for that. If you don't get a backtrace, tryM-x top-level
before checking the variable and re-runningorg-publish
- or start with a fresh session of Emacs.ox-rss
is the problem from the output you show. Did you have to get rid of the parentheses aroundorg-rss-publish-to-rss
? As it stands, the question is incomplete and possibly misleading. Please fix it.debug-on-error
.