From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zack Piper Subject: Re: Concerning `(letrec ((ignore)) ...)' in line 2718 of lisp/ox.el Date: Fri, 11 Dec 2015 16:13:36 +0000 Message-ID: <20151211161336.GA19584@apertron.net> References: <87si393szo.fsf@kyleam.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:4830:134:3::10]:57858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7QKE-0000EQ-FQ for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 11:13:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7QKA-00088j-Cf for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 11:13:42 -0500 Received: from apertron.net ([94.23.236.101]:40834 helo=mail.apertron.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7QKA-00088Z-6x for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 11:13:38 -0500 Received: from apertron.net (xieshaij [127.0.0.1]) by mail.apertron.net (Postfix) with ESMTPS id 7732D64101 for ; Fri, 11 Dec 2015 16:13:37 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87si393szo.fsf@kyleam.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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Fri, Dec 11, 2015 at 10:27:55AM -0500, Kyle Meyer wrote: >=20 > Zack Piper writes: >=20 > > I (think) I have a recipe to reproduce this: > > > > - Emacs 25 (emacs-25 branch from Git) > > - Org mode from latest Git (make sure that there's no ELC files from > > Emacs *24*, if it uses files from Emacs 24 it works fine (bug in > > byte compiler?)). > > > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80[ r.el ] > > =E2=94=82 (add-to-list 'load-path "~/org-mode/lisp") > > =E2=94=82 (add-to-list 'load-path "~/org-mode/contrib/lisp") > > =E2=94=82 (require 'org) > > =E2=94=82 > > =E2=94=82 (find-file "~/r.org") > > =E2=94=82 > > =E2=94=82 (org-html-export-as-html) > > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80[ $ ] > > =E2=94=82 emacs -Q -l r.el > > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > > > Produces: > > > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > =E2=94=82 Wrong number of arguments: setq, 1 > > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >=20 > I believe this because an odd number of arguments to setq now signals a= n > error: >=20 > https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02028.htm= l >=20 > From Emacs 25 NEWS: >=20 > ** `setq' must now be called with an even number of arguments. The > earlier behavior of silently supplying a nil to the last variable w= hen > there was an odd number of arguments has been eliminated. >=20 > The binding >=20 > (letrec ((ignore) >=20 > results in letrec passing an odd number of arguments to setq: >=20 > `(let ,(mapcar #'car binders) > ,@(mapcar (lambda (binder) `(setq ,@binder)) binders) > ,@body)) > =20 > Changing (ignore) to (ignore nil) should fix it. There are several > other places in ox.el that have the same problem. However, I don't kno= w > if letrec should handle this instead. Nicolas? I submitted a patch to the emacs-devel ML which fixes this (at least for me). Thanks very much for tracking down this issue, Kyle! --=20 Zack Piper http://apertron.net