Bug#747664: julia--get-object breaks because of mapcan

Juliusz Chroboczek jch at pps.univ-paris-diderot.fr
Tue May 13 01:20:48 CEST 2014


> (eval-when-compile
>   (require 'cl)); in Emacs <= 23.x for (mapcan .)

I'm not sure that's enough.  Mapcan is a DEFSUBST for cl-mapcan,
which itself is an ordinary DEFUN in cl-extra.  So unless you require
cl-extra at runtime, you're still going to get an undefined function.
(You won't see the issue in interpreted code.)

I would suggest that you avoid the overhead of loading cl or cl-extra
by rewriting

  (mapcan (lambda ...) list)

as

  (apply #'nconc (mapcar (lambda ...) list))

-- Juliusz



More information about the ESS-Debian mailing list