From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoff Gole Newsgroups: gmane.emacs.devel Subject: Re: Idempotency of add-hook wrt lambda expressions Date: Thu, 5 Mar 2009 20:53:23 +0900 Message-ID: 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=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236254022 10206 80.91.229.12 (5 Mar 2009 11:53:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 11:53:42 +0000 (UTC) To: David Kastrup , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 05 12:54:59 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 1LfCAE-0000pj-Co for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 12:54:58 +0100 Original-Received: from localhost ([127.0.0.1]:41919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfC8s-0006aE-PE for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 06:53:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfC8n-0006Zx-US for emacs-devel@gnu.org; Thu, 05 Mar 2009 06:53:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfC8m-0006Zi-Fo for emacs-devel@gnu.org; Thu, 05 Mar 2009 06:53:29 -0500 Original-Received: from [199.232.76.173] (port=52044 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfC8m-0006Zf-DN for emacs-devel@gnu.org; Thu, 05 Mar 2009 06:53:28 -0500 Original-Received: from wf-out-1314.google.com ([209.85.200.170]:25108) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfC8j-0002M5-Ai; Thu, 05 Mar 2009 06:53:25 -0500 Original-Received: by wf-out-1314.google.com with SMTP id 28so4060696wfc.24 for ; Thu, 05 Mar 2009 03:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PN7KbpEc4FAet2UD2kvPgLJHIFdBe6ddGNlOYJruYhw=; b=kQkr51WEx8qBrNafYuE0O/XF5xLg6G5O3isiTm1FX6F6ANW93pPOZgYXpj4ihh3tzw Vinz7KESrou8LSif6L+bofNz+PZDuOo60DvNF3UkFk7hfuAl9EKoytuGz3YH3v8qFCSz unsBHLc+K/QwJncBCH1a0bBaQlLNWhA6d6g3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lJKJw3Itfovk+DVxIJaajZbV97pj4M+d5S2mNt4nAh0PHwc5fyxagZpr1HnnsGbLg0 kpWLx+JNTMl9lckERTEW3w34taYpdp35wunzY6WgAgJXRGYTmSJYWkFNz3xhYdxfrRwp 95CkmVdsn7i6V43irNNYK1zkQCu82USkuA6Vk= Original-Received: by 10.142.173.8 with SMTP id v8mr493032wfe.181.1236254003729; Thu, 05 Mar 2009 03:53:23 -0800 (PST) In-Reply-To: <861vtcxpt1.fsf@lola.quinscape.zz> 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:109468 Archived-At: > Also, in some cases you can't avoid lambda, namely when using computed > functions. Can't you avoid this with (add-hook 'hook (progn (fset symbol calculated-definition) symbol)) or similar?