emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Zack Piper <zack@apertron.net>
To: emacs-orgmode@gnu.org
Subject: Re: Concerning `(letrec ((ignore)) ...)' in line 2718 of lisp/ox.el
Date: Fri, 11 Dec 2015 16:13:36 +0000	[thread overview]
Message-ID: <20151211161336.GA19584@apertron.net> (raw)
In-Reply-To: <87si393szo.fsf@kyleam.com>

On Fri, Dec 11, 2015 at 10:27:55AM -0500, Kyle Meyer wrote:
> 
> 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?

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!


-- 
Zack Piper <zack@apertron.net> http://apertron.net

      reply	other threads:[~2015-12-11 16:13 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
2015-12-11 16:13     ` Zack Piper [this message]

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=20151211161336.GA19584@apertron.net \
    --to=zack@apertron.net \
    --cc=emacs-orgmode@gnu.org \
    /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).