Arne Babenhauserheide <arne_...@web.de> writes: > Hi, > > I set up my publishing workflow with org-project using lambdas in the > :completion-function, but I now receive errors when I try to publish. > > Example Setup: > > (setq org-publish-project-alist > '(("guile-basics" > :base-directory "~/eigenes/py2guile" > :publishing-directory (concat private-publish-ftp-proj > "guile-basics/") > :base-extension "org" > :publishing-function org-html-publish-to-html > :completion-function (lambda () (private-publish-rename-to-index > (concat private-publish-ftp-proj > "guile-basics/") > "guile-basics.html")) > :section-numbers nil > :with-toc t > :html-preamble t > :exclude ".*" > :include ["guile-basics.org"]))) > > > This used to work, but now it breaks with > > org-publish-projects: Invalid function: lambda
An additional pair of parens should help as workaround. Concretely try :completion-function ((lambda () (private-publish-rename-to-index (concat private-publish-ftp-proj "guile-basics/") "guile-basics.html"))) This works since it's possible to use a list of functions also. I'll commit a fix against master in a second to be able to use a lambda instead of a list containing one lambda. Thanks, -- Marco