From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build Date: Sun, 09 Jun 2019 17:50:38 +0200 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="258667"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Stefan Monnier , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 09 17:51:02 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 1ha062-00158D-3R for ged-emacs-devel@m.gmane.org; Sun, 09 Jun 2019 17:51:02 +0200 Original-Received: from localhost ([::1]:36550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha060-0000mi-CW for ged-emacs-devel@m.gmane.org; Sun, 09 Jun 2019 11:51:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43865) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha05k-0000mZ-0D for emacs-devel@gnu.org; Sun, 09 Jun 2019 11:50:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ha05j-0005fR-3d for emacs-devel@gnu.org; Sun, 09 Jun 2019 11:50:43 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:39746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ha05i-0005du-T9; Sun, 09 Jun 2019 11:50:43 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ha05e-0004UL-Hh; Sun, 09 Jun 2019 17:50:40 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVBPj+Qjo8cGhvk4+Rd W1wEEOLaAAACbElEQVQ4jVVUi5XjIAyUWQpAgQKwzgWExQVIRP3XdCPbu/eOOHkvmugzMyJEax3W tXNtzDNt2k2S7JXykj2J7zwnnpVTrgCs0raWLbH+qYhP2pQrkThTFeHVc7cAhuxv5tykN9JXVj9I ckXCmezFNfMyprcs0SNJvwEt2aR7ZSqyuqmmbqiEKZZ06VtttMRJ89oVLd6kW+oJ024EoJgWOZzr PMnZ26ukowm9+iJvObPzHGRK3ExRLoCuG5sexsMRrXNYkgAkvUWkp4z297kBBFPZIQ15veMDocjI 2gkqSHYLZAy7AelWnDpmzl7HnOW7pAtImNGqq6OWMXPqlAMoRAYnXDOy3K2JSnmAT8OIroRX3kZa PYai7+7IB1K8ZN80xALQ6U05kFEHx2mb08UKADrWMcKmUWczRzMMRKfxxBbwQ7oym3vKmYpxPX84 34fdsxHauPmTwHx/og86EfOHR0QasuflcA+NZJxmLaSNMJ7hQRDvNqjRJfq4VAyGCboqxmj+0wat g0WioI0wQLAEQWNdaSnBYtBzhYHYA8wId1d/odQMoTwcULkM+vBqMdVEPtYN7eQ+B9NGAUxeEuq1 nVuBNa+eQmDiSGmefHU3ze4FvwlgxIUZNXYsTqcPuioW7qJ1nphHDzBQgWeMOejSesBz6f2riezz 6ip0qTaqE7X01dL1faRfIJSGPXzr3uQpFYimf3rx/0Bq4f5vxteDwLTtic8Wzcdj9wm6/JS6NvHa j8Hh2vEk3NfgAkBkh7z+586IO0PjGvE8Nmh1sYsewQNG8SgM1p7liIWss6IubVntHSapZBWKP4h3 Ra2/KpGfrnT/8xAAAAAASUVORK5CYII= In-Reply-To: (Noam Postavsky's message of "Sun, 9 Jun 2019 11:02:53 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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:237349 Archived-At: Noam Postavsky writes: > The warning can be suppressed with (ignore foo), so I guess > > (defun bar (foo) > (with-suppressed-warnings ((unused foo)) > nil)) > > Could expand to > > (defun bar (foo) > (progn > (ignore foo) > nil)) > > Although that does mean you have make sure to only use that within the > scope of foo. Yeah... But I think perhaps pointing the users to `ignore' here is the right thing to do. By the way, this reminds me: Is there any reason why (declare (ignore foo)) isn't supported? We've embraced `declare' for other things, so I think it makes sense to do that for `ignore', too. (And perhaps then later mark simple `ignore' as obsolete.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no