emacs-orgmode
[Top][All Lists]
Advanced

[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: Arne Babenhauserheide
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 14:40:05 +0200
User-agent: mu4e 1.3.10; emacs 26.1

Hi Marco,

Marco Wahl <address@hidden> writes:

> Arne Babenhauserheide <address@hidden> writes:
>> (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.

That’s awesome — thank you! ♡

Also thank you for the workaround!

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]