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: Michael Heerdegen
Subject: Re: Crappyness of Emacs Version 24.5.1 defadvice
Date: Wed, 29 Jun 2016 03:55:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux)

Davin Pearson <address@hidden> 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.




reply via email to

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