From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Things I would like to be added after the release Date: Mon, 18 Jun 2007 17:31:31 -0400 Message-ID: References: <86fy5ghs0s.fsf@lola.quinscape.zz> <18035.28326.988640.435412@gargle.gargle.HOWL> <18036.29770.79749.537013@gargle.gargle.HOWL> <87645nsbln.fsf@catnip.gol.com> <18037.30905.922391.769587@gargle.gargle.HOWL> <18037.38487.604684.804719@kahikatea.snap.net.nz> <87hcp6aqr0.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1182202550 8212 80.91.229.12 (18 Jun 2007 21:35:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Jun 2007 21:35:50 +0000 (UTC) Cc: klaus.berndl@sdm.de, nickrob@snap.net.nz, joakim@verona.se, emacs-devel@gnu.org, raman@users.sourceforge.net, miles@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 18 23:35:47 2007 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 1I0Ot1-0008MY-Bb for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2007 23:35:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0Ot0-00079U-Jy for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2007 17:35:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0Op5-0005Tf-Dp for emacs-devel@gnu.org; Mon, 18 Jun 2007 17:31:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0Op4-0005Sf-12 for emacs-devel@gnu.org; Mon, 18 Jun 2007 17:31:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0Op3-0005SW-Hq for emacs-devel@gnu.org; Mon, 18 Jun 2007 17:31:41 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0Op3-0000oP-6S for emacs-devel@gnu.org; Mon, 18 Jun 2007 17:31:41 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I0Oot-0008DD-BF; Mon, 18 Jun 2007 17:31:31 -0400 In-reply-to: <87hcp6aqr0.fsf@uwakimon.sk.tsukuba.ac.jp> (stephen@xemacs.org) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:73258 Archived-At: Of course I'm telling only a partial story here, emphasizing the advantages of advice over hooks. The big advantage of a hook, compared with advice, is that there is something in the caller which informs you that a hook is run there. It is true that anonymous lambdas as hooks are a pain, but there's an easy solution to that: give those functions names.