From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: ad-remove-advice bug. Date: Thu, 08 Mar 2007 01:07:14 +0100 Message-ID: References: <878xe9t916.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1173312474 2932 80.91.229.12 (8 Mar 2007 00:07:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 00:07:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 08 01:07:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HP6Ac-00015M-RC for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2007 01:07:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HP6Al-000788-F8 for ged-emacs-devel@m.gmane.org; Wed, 07 Mar 2007 19:07:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HP6AY-00077n-NL for emacs-devel@gnu.org; Wed, 07 Mar 2007 19:07:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HP6AV-00077Z-1X for emacs-devel@gnu.org; Wed, 07 Mar 2007 19:07:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HP6AU-00077W-Qq for emacs-devel@gnu.org; Wed, 07 Mar 2007 19:07:38 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HP6AL-0007iW-7y for emacs-devel@gnu.org; Wed, 07 Mar 2007 19:07:29 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HP6AH-0001lV-ON for emacs-devel@gnu.org; Thu, 08 Mar 2007 01:07:25 +0100 Original-Received: from gamma02.me.chalmers.se ([129.16.50.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 01:07:25 +0100 Original-Received: from bojohan+news by gamma02.me.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 01:07:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gamma02.me.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:TK27YH7pIlZtX36R6QTN8QhNQJY= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67546 Archived-At: michael@cadilhac.name (Michaël Cadilhac) writes: > Now, use M-x ad-remove-advice RET RET RET RET (the default each time) > There's two annoying things : > 1. M-x describe-function RET forward-line RET says : > | This subr is advised. > `-------------------------- > > although there's no more advice, Here's what the commentary in advice.el says: ;; - ad-unadvise deactivates a FUNCTION and removes all of its advice ;; information, hence, it cannot be activated again [...] ;; - ad-remove-advice removes a particular piece of advice of a FUNCTION. ;; You still have to do call `ad-activate' or `ad-update' to ;; activate the new state of advice. -- Johan Bockgård