From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Show *compilation* only if build did not succeed Date: Sun, 23 Dec 2018 09:29:31 -0500 Message-ID: References: <87h8f5fvdo.fsf@aminb.org> <87ftupxxdl.fsf@aminb.org> <87k1k1tm3x.fsf@aminb.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545575374 24019 195.159.176.226 (23 Dec 2018 14:29:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2018 14:29:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Amin Bandali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 23 15:29:30 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1gb4kz-00067K-LL for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Dec 2018 15:29:29 +0100 Original-Received: from localhost ([::1]:35253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb4n6-0005EB-5w for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Dec 2018 09:31:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb4lv-00057w-9C for help-gnu-emacs@gnu.org; Sun, 23 Dec 2018 09:31:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb4l9-0003cQ-CL for help-gnu-emacs@gnu.org; Sun, 23 Dec 2018 09:30:27 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:54705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb4l5-0003Tf-JR; Sun, 23 Dec 2018 09:29:37 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wBNETWOq004129; Sun, 23 Dec 2018 09:29:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CDD7A6AAB6; Sun, 23 Dec 2018 09:29:31 -0500 (EST) In-Reply-To: <87k1k1tm3x.fsf@aminb.org> (Amin Bandali's message of "Sat, 22 Dec 2018 14:09:06 -0500") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6444=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6444> : inlines <6989> : streams <1807967> : uri <2768846> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119032 Archived-At: > Out of curiosity, is there any way to silence the =E2=80=9Cad-handle-defi= nition: > =E2=80=98compilation-start=E2=80=99 got redefined=E2=80=9D warning locall= y? I tried wrapping my > workaround in a (let ((ad-redefinition-action 'accept)) ...), but that > doesn=E2=80=99t seem to do it. ad-redefinition-action is consulted when compilation-start is defined (i.e. when loading compile.el), that's why your let has no effect. If you use the newer `advice-add` instead of the older `defadvice` you shouldn't get any warning (it's one of the "features" I didn't bother to port). But you can also just do (setq ad-redefinition-action 'accept) Stefan