From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: flet / my-filt problem Date: Tue, 31 Jul 2012 08:20:46 -0600 Message-ID: <87ehnsggg1.fsf@gmx.com> References: <87k3xk9ahb.fsf@med.uni-goettingen.de> <87vch4j3cj.fsf@gmx.com> <87fw8898h0.fsf@med.uni-goettingen.de> <87hasoj076.fsf@gmx.com> <871ujs5pam.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwDcb-00065J-Ml for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 10:40:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwDcV-00059B-Nv for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 10:40:29 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:39040 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SwDcV-00058Q-Gs for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 10:40:23 -0400 In-Reply-To: <871ujs5pam.fsf@gnu.org> (Bastien's message of "Tue, 31 Jul 2012 10:05:05 +0200") 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: Bastien Cc: Andreas Leha , emacs-orgmode@gnu.org Bastien writes: > Hi Eric, > > Eric Schulte writes: > >> Does the attached patch resolve this bad behavior? > > Can't we just get rid of org-flet in this case? > > With simply let-defining the temporary function? > > (let ((f (lambda(x) (message x)))) > (funcall f "Hello!")) This is exactly the tact taken by my previous patch, I'm still not sure why it didn't work. Regardless, I've just pushed up a fix which replaces the named function with an anonymous lambda-expression. I've also pushed up a test case which exercises this function. Everything now seems to be working. Best, -- Eric Schulte http://cs.unm.edu/~eschulte