From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <871rpac8yi.fsf@web.de> References: <874ku6coou.fsf@web.de> <84a73y8bau.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40435) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIti6-0003lp-N6 for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 08:40:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIti5-0000YO-O2 for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 08:40:10 -0400 Received: from mout.web.de ([212.227.17.12]:53081) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIti5-0000XI-BH for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 08:40:09 -0400 In-reply-to: <84a73y8bau.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Marco Wahl Cc: emacs-orgmode@gnu.org Hi Marco, Marco Wahl writes: > Arne Babenhauserheide writes: >> (setq org-publish-project-alist >> '(("guile-basics" >> :base-directory "~/eigenes/py2guile" >> :publishing-directory (concat private-publish-ftp-proj "guile-b= asics/") >> :base-extension "org" >> :publishing-function org-html-publish-to-html >> :completion-function (lambda () (private-publish-rename-to-inde= x=20 >> (concat private-publish-ftp-p= roj "guile-basics/")=20 >> "guile-basics.html")) >> :section-numbers nil >> :with-toc t >> :html-preamble t >> :exclude ".*" >> :include ["guile-basics.org"]))) >>=20=20=20=20=20=20=20=20=20 >> >> 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=20 > (concat private-publish-ftp-p= roj "guile-basics/")=20 > "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=E2=80=99s awesome =E2=80=94 thank you! =E2=99=A1 Also thank you for the workaround! Best wishes, Arne --=20 Unpolitisch sein hei=C3=9Ft politisch sein ohne es zu merken