From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build Date: Fri, 17 May 2019 07:25:01 -0400 Message-ID: References: <831s0xd3z1.fsf@gnu.org> <83pnohbhny.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="218775"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , Stefan Monnier , Emacs developers To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 17 13:26:33 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRb0S-000unm-RL for ged-emacs-devel@m.gmane.org; Fri, 17 May 2019 13:26:33 +0200 Original-Received: from localhost ([127.0.0.1]:46927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRb0R-0003vD-HA for ged-emacs-devel@m.gmane.org; Fri, 17 May 2019 07:26:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRazs-0003uQ-19 for emacs-devel@gnu.org; Fri, 17 May 2019 07:25:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRazn-00035l-FT for emacs-devel@gnu.org; Fri, 17 May 2019 07:25:53 -0400 Original-Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:36163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRazN-0002V8-Qu; Fri, 17 May 2019 07:25:25 -0400 Original-Received: by mail-ot1-x334.google.com with SMTP id c3so6401473otr.3; Fri, 17 May 2019 04:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nRRtNA9QaB0mvhKf3Dyo7mmwu7i81as9uxgkKIp2Eek=; b=XqYfdipDYPHiuIVVynSCVs3SUFdKbTPVQnEZ40FTHSzYKRC405k3gUQ+zrtYupr1Ip THAUDutxGPpF8jevTJsdz40gFfJEI5Xwl3Oc4s0yXl0/7NRZwWBgOvnK1lX4K9QRncHE dzkbjwBx15tSx1u+vjNNnrwha5PRuLdbKVqRiBnQA93SfC+AbT1mCuAnv5TWdhhHfZqS VulSAFKTPAgHrG5P5TgB5AKNrSFivp7QTolPIbphGsyEVzd4cLyKWePP4KRgnvoSkFue c6pWd2ynZqUCjUijNM9EDgN8pGTjDCBWSP+zfdAExQJGfgfKWIzsBMoibWXEUFK+SRaM Ja0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nRRtNA9QaB0mvhKf3Dyo7mmwu7i81as9uxgkKIp2Eek=; b=Bk6OukLDGlljMNO7dV6/upDNhsBIqO9wIdmQadHoYeMfjiaKy24r7mtfGiruuYMoCT JmLrQknlJFUEPs90HcJ7Oe00e5oUao4K6KRyROtBvcdpIX6Oy02i5nlAKnTrLLeEbAXc naRQHll77KehpH80ihsY0zdzlu5r6du4IEKHrpw+T2wI84zDECBzbksmP/4z1clcIWLo 5i0q4pyqmDb3ezotxwKdc5/kqBoROEm+IvKcQ2b2Uh4U228I+eQ++xOMdJNF0ysSrO36 WxrHZCjvJ9lUdX3k/zlOYBQa4sH1EDyI3MSSj8ySOSrKHPkmj8gdW1in59p6umhh6ZMi GSPQ== X-Gm-Message-State: APjAAAVd7dWGtJYWqvwfzzKQeCKAc2v7md7vrIV/o0wP1wwFFQLyjDDD tyqIHxEcrUn36OZ/HpNkFRW1SY+oyJN2J0mQPag= X-Google-Smtp-Source: APXvYqw4qJETU7BW0inqTuA5yZrlVUR/KWd5YTDiMuJ7tRyZiChLaj+fCNWCxwbY8ZehTxwoHVakQg5CXXKFqlPjTMU= X-Received: by 2002:a9d:7354:: with SMTP id l20mr34484710otk.115.1558092318059; Fri, 17 May 2019 04:25:18 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::334 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:236649 Archived-At: On Fri, 17 May 2019 at 06:11, Lars Ingebrigtsen wrote: > > Eli Zaretskii writes: > > > I thought about something even more focused, like > > > > (declare 'warning-about-arguments-mismatch 'off) > > > > inside the function's body. > > Would that switch off warnings about all argument mismatching in the > function's body? Because that sounds a bit drastic, too, since you > would want to have warnings about all other function calls with argument > mismatches... > > (declare 'warning-about-arguments-mismatch 'display-completion-list 'off) > > perhaps? This makes sense, but it should come for free. There's never any point in issuing a warning about not using the advertised calling convention from inside the function itself. Similarly, we shouldn't issue warnings about calls to obsolete functions from bodies of functions that are themselves obsolete. > But there's other things you may want to disable warnings about that > perhaps won't be that easy to express, so `with-no-warnings' seems more > focused and convenient... https://debbugs.gnu.org/4837 "with-fewer-warnings ?" talks about adding something even more focused than with-no-warnings.