emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] functions from cl package called at runtime


From: Eric Schulte
Subject: Re: [O] functions from cl package called at runtime
Date: Thu, 19 Jan 2012 15:04:50 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

>
>> Also, while intersection below is a function defined in cl-seq, the use
>> of `intersection' in ob.el refers to a local function and not the cl-seq
>> function, so it should be fine.
>
> The byte-compiler thinks otherwise, so I'd check that assumption
> again... but it might be a good idea to disambiguate the name with a
> prefix anyway.  I've just tested the latter approach (renaming
> intersection to ob-intersection) and it does work, so somehow the
> byte-compiler doesn't quite get what is going on in the flet expansion
> when the symbol is already present via the cl package.
>
> I've just looked at the comments in cl-macs.el and it seems that flet
> should be used with care anyway, since it is not quite doing what it is
> supposed to do...
>

Thanks for looking into this, I've just disambiguated the name of
"intersection" as you suggest.  The word of warning with respect to flet
is well taken, in looking at gensym it seems it also doesn't quite
deliver on its promises.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]