[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for help: advice-lite

From: John Wiegley
Subject: Re: Request for help: advice-lite
Date: Wed, 27 Jun 2012 23:55:05 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin)

>>>>> Stefan Monnier <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]