From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: Idempotency of add-hook wrt lambda expressions Date: Thu, 5 Mar 2009 12:41:40 +0100 Message-ID: <20090305114140.GA24045@tomas> References: <74F2CF19-2E71-473F-A352-A628B3B29A8E@gmail.com> <861vtcxpt1.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236253221 7957 80.91.229.12 (5 Mar 2009 11:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 11:40:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 05 12:41:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LfBxF-0004tp-OJ for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 12:41:34 +0100 Original-Received: from localhost ([127.0.0.1]:48346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfBvu-0007Oh-0K for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 06:40:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfBvo-0007O3-1l for emacs-devel@gnu.org; Thu, 05 Mar 2009 06:40:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfBvh-0007M3-Kw for emacs-devel@gnu.org; Thu, 05 Mar 2009 06:40:02 -0500 Original-Received: from [199.232.76.173] (port=42129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfBvh-0007Lw-Er for emacs-devel@gnu.org; Thu, 05 Mar 2009 06:39:57 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:33373 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfBvf-0000jn-AI; Thu, 05 Mar 2009 06:39:55 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id B78EA90091; Thu, 5 Mar 2009 12:41:40 +0100 (CET) Content-Disposition: inline In-Reply-To: <861vtcxpt1.fsf@lola.quinscape.zz> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109467 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Mar 05, 2009 at 10:49:14AM +0100, David Kastrup wrote: [...] > Also, in some cases you can't avoid lambda, namely when using computed > functions. Yes, and one particularly useful example would be "poor-man's currying", where you want to use the same function with slight variations in bindings. Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJr7p0Bcgs9XrR2kYRAktQAJ9tApSRFowHTetKEtZ02g6e2u1o4gCffDP/ GsXiJd4jAChs/oMEb4dlqww=3D =3DIX1U -----END PGP SIGNATURE-----