From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Concerning `(letrec ((ignore)) ...)' in line 2718 of lisp/ox.el Date: Fri, 11 Dec 2015 10:27:55 -0500 Message-ID: <87si393szo.fsf@kyleam.com> References: 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]:43598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Pc4-0001kQ-TY for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 10:28:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7Pc0-000355-SD for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 10:28:04 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:65407 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Pc0-000351-Nf for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 10:28:00 -0500 In-Reply-To: (Zack Piper's message of "Fri, 11 Dec 2015 12:44:33 +0000") 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: Zack Piper Cc: emacs-orgmode@gnu.org Zack Piper writes: > 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 I believe this because an odd number of arguments to setq now signals an error: https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02028.html >From Emacs 25 NEWS: ** `setq' must now be called with an even number of arguments. The earlier behavior of silently supplying a nil to the last variable when there was an odd number of arguments has been eliminated. The binding (letrec ((ignore) results in letrec passing an odd number of arguments to setq: `(let ,(mapcar #'car binders) ,@(mapcar (lambda (binder) `(setq ,@binder)) binders) ,@body)) =20=20=20=20=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 know if letrec should handle this instead. Nicolas? -- Kyle