From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: functions from cl package called at runtime Date: Thu, 19 Jan 2012 15:04:50 -0700 Message-ID: <87pqef2vst.fsf@gmx.com> References: <87aa5k25ml.fsf@Rainer.invalid> <87k44n4la9.fsf@gmx.com> <87r4yvcxaa.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro06M-0003KT-PX for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 17:04:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro06L-0006O2-6W for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 17:04:58 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:53363) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Ro06K-0006Nd-WB for emacs-orgmode@gnu.org; Thu, 19 Jan 2012 17:04:57 -0500 In-Reply-To: <87r4yvcxaa.fsf@Rainer.invalid> (Achim Gratz's message of "Thu, 19 Jan 2012 20:22:37 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org > >> 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/