From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add `advice-remove-all` Date: Wed, 04 Sep 2019 14:30:49 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19488"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Matthew Newton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 04 20:31:04 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i5a3c-0004vG-5b for ged-emacs-devel@m.gmane.org; Wed, 04 Sep 2019 20:31:04 +0200 Original-Received: from localhost ([::1]:36224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5a3a-0007yK-M8 for ged-emacs-devel@m.gmane.org; Wed, 04 Sep 2019 14:31:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59439) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5a3S-0007xs-DR for emacs-devel@gnu.org; Wed, 04 Sep 2019 14:30:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5a3Q-0004PJ-Qt for emacs-devel@gnu.org; Wed, 04 Sep 2019 14:30:53 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6753) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i5a3Q-0004MV-KN for emacs-devel@gnu.org; Wed, 04 Sep 2019 14:30:52 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A79E2100ECB; Wed, 4 Sep 2019 14:30:51 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4E896100C6D; Wed, 4 Sep 2019 14:30:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1567621850; bh=ukC6NHyCiIIaWp/KIWaBpf+sov0gRDJWXMnaWop+3/c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jkQV6sisURcLorT6I2lW3HVfKI1dDpMRNBhOoiAVb46eFJZLWB1LVAwGwSrLKuBDw 27GICMa1jVj6nuk8V3pixu1IC3d+IXm7ycv9jl4BJGod2AvCX7All/pQ5MNm2kvd1M igmeOPHJGmPAxi1w+k3wMnoxOdVhQNjD84+kyGpNFtOJw2hZuKDfb5yRtSWCScZPt0 vfm91IquWVT7ZPu/+clQXpiE5Xj1YlZXfRFO3T2amW0UPcgK2Upahj0GzNajeK68tz igO1b5uQ2OVYoUAEQz/LAjciHXaSMVtM7VbpxeRpDJQKpdFrQ1wsam5XCONcPpSG0o XMODOBu8zgjqg== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 338DB120BEE; Wed, 4 Sep 2019 14:30:50 -0400 (EDT) In-Reply-To: (Matthew Newton's message of "Wed, 4 Sep 2019 09:59:10 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:239842 Archived-At: > My use case is when I=E2=80=99m developing something in my config and I m= ess up > something up. I might iterate on an advice function and end up with multi= ple > advice elements. This is a quick, convenient way to clean it up. Is there > a different way that would make more sense? Maybe the advice info displayed in *Help* by the likes of `C-h o` could let you do that interactively? Also, I recently came across the idea to have an `advice-list` command that shows all the advised functions, in a buffer (a bit like `list-processes`). I'm not completely sure it's worth the trouble, but it could occasionally be a good way to have an overview of "how bad things got". It wouldn't belong in the preloaded nadvice.el file, of course. Stefan