From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Request for help: advice-lite Date: Wed, 27 Jun 2012 23:55:05 -0500 Organization: New Artisans LLC Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340859319 30095 80.91.229.3 (28 Jun 2012 04:55:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2012 04:55:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 28 06:55:18 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sk6lC-0005QU-Bj for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2012 06:55:18 +0200 Original-Received: from localhost ([::1]:41140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sk6lC-0005jK-EB for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2012 00:55:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sk6l9-0005jE-SL for emacs-devel@gnu.org; Thu, 28 Jun 2012 00:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sk6l4-0004Tj-Bo for emacs-devel@gnu.org; Thu, 28 Jun 2012 00:55:15 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:35640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sk6l4-0004R5-1o for emacs-devel@gnu.org; Thu, 28 Jun 2012 00:55:10 -0400 Original-Received: by ggm4 with SMTP id 4so1817521ggm.0 for ; Wed, 27 Jun 2012 21:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:organization:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=aA69R3vUMkGlC67ZSJ/ZnlkcfhsyS788/47wUQmm324=; b=Txnd82L0MKAcJYlKfBdST125gEmfHRkNrZhspQQIMHVx0GdWzRNiDNLMIvuQTLZXSv YcQu4m1cGrsZXCeczK2ckMeaKZOohrP4t3d83/+7w3nrmchVcBrZ2g+qz6Tb3KrU4umN Im2Epy3TG8JlaXE7+6l4IEC8jrccY+wFEnLUbaRjFZhBXe1Ty9b+BEXGrzxHsTt/+GVg ocnAItLRxfk9OQzXyyMRatgpyKD2afn2/VFxRPWFDGZ9mPclp2K55Tdi8Q5KPY0MijOf wQCp6qgRiGi6GApCqUEw4eaENzKW56JSd0BcK6eJ2uWg5HnrCs7+cOwODTBjXvcKQXNe k6jA== Original-Received: by 10.236.180.40 with SMTP id i28mr839128yhm.22.1340859307859; Wed, 27 Jun 2012 21:55:07 -0700 (PDT) Original-Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net. [98.215.105.167]) by mx.google.com with ESMTPS id b8sm66198857anm.4.2012.06.27.21.55.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jun 2012 21:55:07 -0700 (PDT) Original-Received: by vulcan.local (Postfix, from userid 501) id 2C84FF1CFFEE; Wed, 27 Jun 2012 23:55:05 -0500 (CDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Thu, 28 Jun 2012 00:09:56 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.161.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151255 Archived-At: >>>>> Stefan Monnier writes: > Advice.el is a very nice library, but sadly there are many places in Emacs > where we could use it but we don't because of advice.el's size. [...] > Any taker? I assume you'd be happy if one were to just copy advice.el to advice-lite.el, and then rip out everything you don't want? > PS: The intention is of course not to encourage people to advise more > functions, but rather to avoid people using flet/letf/fset/... to roll their > own form of function-override which typically makes bug more difficult to > track down, because the presence of an override may not be obvious. One feature of letf that advising does not provide is that the override only covers a very specific range in the code. Advice typically persists throughout one's entire session. John