emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: ad-disable-advice doesn't work.


From: John Paul Wallington
Subject: Re: ad-disable-advice doesn't work.
Date: Tue, 11 Feb 2003 12:01:41 +0000
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

川幡 太一 wrote:

>  I've found that `ad-disable-advice' doesn't work as said in the
>  document.  Here is the example which I tried with newest CVS head
>  emacs with `-q -nw' options.
[...]
>      (ad-disable-advice 'test-func 'before 'foobar)

The node "Enabling Advice" in the elisp manual says:

                (ad-disable-advice 'foo 'before 'my-advice)

        This function by itself only changes the enable flag for a
        piece of advice.  To make the change take effect in the
        advised definition, you must activate the advice for `foo'
        again:

                (ad-activate 'foo)

There is a similar comment in advice.el ~line 642


What is the document you refer to?  Does it mention the above
answer?




reply via email to

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