From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#58739: Lack of error message about number of args (?native compilation?) Date: Sat, 29 Oct 2022 16:04:22 +0000 Message-ID: References: <831qqqiyn0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4418"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58739@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 18:05:18 2022 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 1oooKk-0000vY-7y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 18:05:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oooKf-0006uU-VD; Sat, 29 Oct 2022 12:05:14 -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 1oooKX-0006oz-Ts for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 12:05:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oooKT-0006OI-R0 for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 12:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oooKT-0007G2-M7 for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 12:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58739 X-GNU-PR-Package: emacs Original-Received: via spool by 58739-submit@debbugs.gnu.org id=B58739.166705947427859 (code B ref 58739); Sat, 29 Oct 2022 16:05:01 +0000 Original-Received: (at 58739) by debbugs.gnu.org; 29 Oct 2022 16:04:34 +0000 Original-Received: from localhost ([127.0.0.1]:36430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oooK1-0007FH-MJ for submit@debbugs.gnu.org; Sat, 29 Oct 2022 12:04:33 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:45648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oooK0-0007F1-9V for 58739@debbugs.gnu.org; Sat, 29 Oct 2022 12:04:33 -0400 Original-Received: (qmail 79873 invoked by uid 3782); 29 Oct 2022 18:04:26 +0200 Original-Received: from acm.muc.de (p4fe15996.dip0.t-ipconnect.de [79.225.89.150]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 29 Oct 2022 18:04:26 +0200 Original-Received: (qmail 23279 invoked by uid 1000); 29 Oct 2022 16:04:22 -0000 Content-Disposition: inline In-Reply-To: <831qqqiyn0.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246549 Archived-At: On Sat, Oct 29, 2022 at 15:48:35 +0300, Eli Zaretskii wrote: > > Cc: 58739@debbugs.gnu.org > > Date: Sat, 29 Oct 2022 12:04:36 +0000 > > From: Alan Mackenzie > > > to me this fix looks like a good idea (assuming changing the definition > > > of MANY is acceptable). > > We'll see what Eli says. > About what, may I ask? My patch for this bug. As a quick summary, the cause of spurious warning messages in the byte compiler was subr-arity returning (12 . many) rather than the correct (12 . 12) for a native compiled function with exactly 12 parameters. I've corrected this, by making subr-arity return (12 . 12), and I committed the patch earlier on this afternoon. In the process, MANY came to be defined to mean "has &rest parameters". I think you'll be interested in the patch. -- Alan Mackenzie (Nuremberg, Germany).