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: Sun, 23 Oct 2022 12:12:49 +0000 Message-ID: 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="18372"; mail-complaints-to="usenet@ciao.gmane.io" To: 58739@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 24 04:50:42 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 1omnY2-0004ft-KH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Oct 2022 04:50:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ommNu-0001GE-2M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Oct 2022 21:36:10 -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 1omZre-0006b9-K5 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 08:14:02 -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 1omZre-0007x6-CE for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 08:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omZre-0005Ub-7l for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2022 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58739 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166652719021045 (code B ref -1); Sun, 23 Oct 2022 12:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2022 12:13:10 +0000 Original-Received: from localhost ([127.0.0.1]:43803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omZqo-0005TN-Ef for submit@debbugs.gnu.org; Sun, 23 Oct 2022 08:13:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omZql-0005TF-SR for submit@debbugs.gnu.org; Sun, 23 Oct 2022 08:13:08 -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 1omZql-0006Y9-7d for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 08:13:07 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omZqj-0007oY-2T for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 08:13:06 -0400 Original-Received: (qmail 58759 invoked by uid 3782); 23 Oct 2022 14:12:49 +0200 Original-Received: from acm.muc.de (p2e5d5154.dip0.t-ipconnect.de [46.93.81.84]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 23 Oct 2022 14:12:49 +0200 Original-Received: (qmail 24445 invoked by uid 1000); 23 Oct 2022 12:12:49 -0000 Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.5; envelope-from=acm@muc.de; helo=mx3.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:246060 Archived-At: Hello, Emacs. Firstly, note that the function desktop-buffer has exactly 12 parameters. With an up to date Emacs 29: (i) emacs -Q (ii) M-x load-library RET desktop RET. (iii) M-x disassemble RET desktop-buffer. Note that this is native code. (iv) M-: (desktop-buffer 1 2 3 4 5 6 7 8 9 10 11 12 13) RET This gives an error message about 4 not being a list. What it ought to do is instead throw an error about the number of arguments. This is a bug. (v) M-x load-file RET /path/to/emacs/lisp/desktop.elc. (vi) M-x disassemble RET desktop-buffer. Note that we now have byte compiled code. (vii) M-: (desktop-buffer 1 2 3 4 5 6 7 8 9 10 11 12 13) RET We now get a correct error message about the numbere of arguments. As a matter of interest, I noticed this bug while byte-compiling desktop.el inside Emacs. It gave a warning message about the number of parameters to desktop-buffer having changed from 12+ to 12. Here, I suspect there's a bug in the native compilation of desktop-buffer. -- Alan Mackenzie (Nuremberg, Germany).