From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add `advice-remove-all` Date: Mon, 01 May 2017 15:26:02 +0200 Message-ID: <87y3ugwvx1.fsf@jane> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493645157 8931 195.159.176.226 (1 May 2017 13:25:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 May 2017 13:25:57 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 15:25:51 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5BKp-0002DL-FY for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 15:25:51 +0200 Original-Received: from localhost ([::1]:54336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5BKu-0000Tc-Vm for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 09:25:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5BKN-0000TW-6O for emacs-devel@gnu.org; Mon, 01 May 2017 09:25:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5BKI-0006N8-8N for emacs-devel@gnu.org; Mon, 01 May 2017 09:25:23 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:48562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5BKI-0006N3-1I for emacs-devel@gnu.org; Mon, 01 May 2017 09:25:18 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 6C37DE6538; Mon, 1 May 2017 15:25:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jwzca-GdYQb3; Mon, 1 May 2017 15:25:14 +0200 (CEST) Original-Received: from localhost (gra4.internetdsl.tpnet.pl [83.3.182.4]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 9E41FE604C; Mon, 1 May 2017 15:25:13 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214483 Archived-At: On 2017-04-27, at 14:52, Stefan Monnier wrote: >> I recently had the need to remove all advice from a function I was playing >> around with, and was surprised to find that `advice-remove-all` did not >> exist. > > Do you have a use-case? > > In the case of https://emacs.stackexchange.com/questions/24657, my > impression that all that was needed is an interactive `advice-remove` > which provides completion (so that to remove all pieces of advice, you > may have to use this command a few times, maybe, but it's rather rare). Would that work when I (quite foolishly, I admit) advised something with an anonymous function? Best, -- Marcin Borkowski