[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: :completion-function no longer takes a lambda [9.3.6 (9.3.6-elp
From: |
Marco Wahl |
Subject: |
Re: Bug: :completion-function no longer takes a lambda [9.3.6 (9.3.6-elpa @ /home/arne/.guix-profile/share/emacs/site-lisp/)] |
Date: |
Mon, 30 Mar 2020 11:03:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Arne Babenhauserheide <address@hidden> 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