help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Crappyness of Emacs Version 24.5.1 defadvice


From: Davin Pearson
Subject: Re: Crappyness of Emacs Version 24.5.1 defadvice
Date: Wed, 29 Jun 2016 00:01:13 -0700 (PDT)
User-agent: G2/1.0

On Wednesday, June 29, 2016 at 1:56:33 PM UTC+12, Michael Heerdegen wrote:
> Davin Pearson writes:
> 
> > I tried the following code but it doesn't work.
> >
> > (advice-add 'describe-mode
> >             :around 
> >             #'(lambda () (delete-other-windows) ad-do-it)
> >             )
> 
> There is no `ad-do-it' pseudo variable/whatever in nadvice anymore.  The
> functions that are used as a piece of advice are simply called - and
> how tells the doc of `add-function', or the manual.
> 
> > Worse still, it brings up the following message when I try C-h f
> > describe-mode RET
> >
> > :around advice: No documentation
> >
> > Where do I add the documentation to the advice mechanism?
> 
> Document the function that "is" the advice.
> 
> 
> Michael.

Thanks for your helpful advice.  I use defadvice a lot and I am still unsure 
why Stephen Monier removed that feature.


reply via email to

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