From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#71379: 29.3; Elisp compiler: warnings for formats given insufficiently many arguments Date: Sat, 08 Jun 2024 14:15:14 -0400 Message-ID: References: <4BAD9800-BCDA-42FD-B1AC-9E6C69B62B12@gmail.com> <861q5bjn6e.fsf@gnu.org> <4C5F14A4-EE39-4DDE-9E25-C311F2DA8BC7@gmail.com> <86sexqit2a.fsf@gnu.org> <03B10D9E-2A0A-4E18-B706-730BB2189CED@gmail.com> <86r0d9ff23.fsf@gnu.org> <86zfrweoqg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27428"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71379@debbugs.gnu.org, schnoebelen.ph@gmail.com, mattias.engdegard@gmail.com, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 08 20:16:13 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sG0bs-0006zV-1u for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jun 2024 20:16:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sG0bT-0007cv-Fg; Sat, 08 Jun 2024 14:15:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sG0bS-0007cF-SF for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 14:15:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sG0bS-0003GM-Iw for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 14:15:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sG0bi-0005dg-Ds for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 14:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jun 2024 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71379 X-GNU-PR-Package: emacs Original-Received: via spool by 71379-submit@debbugs.gnu.org id=B71379.171787054121647 (code B ref 71379); Sat, 08 Jun 2024 18:16:02 +0000 Original-Received: (at 71379) by debbugs.gnu.org; 8 Jun 2024 18:15:41 +0000 Original-Received: from localhost ([127.0.0.1]:39428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sG0bM-0005d5-Tw for submit@debbugs.gnu.org; Sat, 08 Jun 2024 14:15:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sG0bK-0005cp-Mp for 71379@debbugs.gnu.org; Sat, 08 Jun 2024 14:15:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sG0ay-00032J-QL; Sat, 08 Jun 2024 14:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=TAq27ZAFnlcMLhqdP0q98PDQnJeD4g/yicncbbOmApk=; b=G8lXTWkt4a00E1HST5DJ fCf/KdH8CbmpV55lqH4xzs7y3HQ9uG0ZR/l5BkdRbsop88efSCwppTK4evnb6SVFzqZPGYFxDnkfK c/xt8C17O7tUGvPxyXXimKSK4BwOduoqlK/UcxB6EhmEmkoZjKalG1jPSuacGHZ8W3kZn8RTw3JP+ zoysv4LcV9tiCr2nfUP671TL393XN6wqMOlfRw3f9rIshloFRZPE2uyQf9FWYz+7PCAV6kGBZis8m cn6Qh3zsfHa+E0UBwZc8Hdb1zNzgs4oAjjoCkitPKHe8jQtlEm0Bx8jbN6dad0bgQP9mKSOOw0htq vMowdiZ813Wo2g==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sG0aw-0005Xr-JN; Sat, 08 Jun 2024 14:15:15 -0400 In-Reply-To: <86zfrweoqg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Jun 2024 18:50:31 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286888 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: Stefan Kangas , 71379@debbugs.gnu.org, >> schnoebelen.ph@gmail.com, mattias.engdegard@gmail.com >> Date: Fri, 07 Jun 2024 09:55:08 -0400 >> >> Eli Zaretskii writes: >> >> >> No strong opinion, but I think this cuts both ways: keeping it local to >> >> the definition of the functions themselves makes it clear to anyone >> >> looking there for inspiration how to add such warnings to their own >> >> `format` functions. >> > >> > Indeed. In addition, some functions marked with this property already >> > do that in their own files. Which was why I asked that question in >> > the first place. >> >> Agreed. Maybe in the future even worth having a declare for it? We >> have them already for things like ex 'important-return-value'. > > Yes, could be a good idea. Okay, will do after we branch emacs30. Andrea