From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <84a73y8bau.fsf@gmail.com> References: <874ku6coou.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36519) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIqK7-00016Y-MZ for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 05:03:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIqK6-0004dj-Jm for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 05:03:11 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:33450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIqK6-0004cE-E6 for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 05:03:10 -0400 Received: by mail-wm1-x333.google.com with SMTP id z14so2619989wmf.0 for ; Mon, 30 Mar 2020 02:03:10 -0700 (PDT) In-Reply-To: <874ku6coou.fsf@web.de> (Arne Babenhauserheide's message of "Mon, 30 Mar 2020 09:00:17 +0200") 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: Arne Babenhauserheide Cc: emacs-orgmode@gnu.org Arne Babenhauserheide 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