emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Zack Piper <zack@apertron.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Concerning `(letrec ((ignore)) ...)' in line 2718 of lisp/ox.el
Date: Fri, 11 Dec 2015 10:27:55 -0500	[thread overview]
Message-ID: <87si393szo.fsf@kyleam.com> (raw)
In-Reply-To: <mafuz9tary.wl-zack@apertron.net> (Zack Piper's message of "Fri, 11 Dec 2015 12:44:33 +0000")


Zack Piper <zack@apertron.net> 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?)).
>
> ╭────[ r.el ]
> │ (add-to-list 'load-path "~/org-mode/lisp")
> │ (add-to-list 'load-path "~/org-mode/contrib/lisp")
> │ (require 'org)
> │
> │ (find-file "~/r.org")
> │
> │ (org-html-export-as-html)
> ╰────
>
> ╭────[ $ ]
> │ emacs -Q -l r.el
> ╰────
>
> Produces:
>
> ╭────
> │ Wrong number of arguments: setq, 1
> ╰────

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))
     
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

  reply	other threads:[~2015-12-11 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 20:26 Concerning `(letrec ((ignore)) ...)' in line 2718 of lisp/ox.el Zack Piper
2015-12-11 12:44 ` Zack Piper
2015-12-11 15:27   ` Kyle Meyer [this message]
2015-12-11 16:13     ` Zack Piper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87si393szo.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=zack@apertron.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).