Bug#747664: julia--get-object breaks because of mapcan
Martin Maechler
maechler at stat.math.ethz.ch
Wed May 14 10:12:31 CEST 2014
>>>>> Juliusz Chroboczek <jch at pps.univ-paris-diderot.fr>
>>>>> on Tue, 13 May 2014 01:20:48 +0200 writes:
>> (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))
Thank you, Juliusz,
I did follow and commit your suggestion now { => svn rev 6000 }.
Martin
More information about the ESS-Debian
mailing list