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#68113: Wrong error message triggered in cl--generic-standard-method-combination Date: Fri, 29 Dec 2023 16:50:17 +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="23965"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: 68113@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 29 17:51:17 2023 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 1rJG4q-00067z-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Dec 2023 17:51:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJG4h-00043c-Ba; Fri, 29 Dec 2023 11:51:07 -0500 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 1rJG4d-0003u1-Qu for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 11:51:05 -0500 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 1rJG4c-0001fy-Hg for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 11:51:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJG4c-0002sY-DK; Fri, 29 Dec 2023 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2023 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68113 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Stefan Monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.170386863611011 (code B ref -1); Fri, 29 Dec 2023 16:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Dec 2023 16:50:36 +0000 Original-Received: from localhost ([127.0.0.1]:42114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJG4C-0002rX-EF for submit@debbugs.gnu.org; Fri, 29 Dec 2023 11:50:36 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:59694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJG4A-0002r8-5b for submit@debbugs.gnu.org; Fri, 29 Dec 2023 11:50:34 -0500 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 1rJG44-00035s-88 for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 11:50:28 -0500 Original-Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJG3x-0001ct-AT for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 11:50:27 -0500 Original-Received: (qmail 37451 invoked by uid 3782); 29 Dec 2023 17:50:18 +0100 Original-Received: from acm.muc.de (pd953a7e3.dip0.t-ipconnect.de [217.83.167.227]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 29 Dec 2023 17:50:17 +0100 Original-Received: (qmail 29753 invoked by uid 1000); 29 Dec 2023 16:50:17 -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.3; envelope-from=acm@muc.de; helo=mail.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_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277025 Archived-At: Hello, Emacs. In my development version of Emacs (based on the master branch) I get a backtrace with the error message being: Error: wrong-type-argument (symbolp mets-by-qual) This occurs during the execution of cl-generic-combine-methods, whose code starts: (defun cl--generic-standard-method-combination (generic methods) (let ((mets-by-qual ())) (dolist (method methods) (let ((qualifiers (cl-method-qualifiers method))) (if (eq (car qualifiers) :extra) (setq qualifiers (cddr qualifiers))) (unless (member qualifiers '(() (:after) (:before) (:around))) (error "Unsupported qualifiers in function %S: %S" (cl--generic-name generic) qualifiers)) (push method (alist-get (car qualifiers) mets-by-qual)))) It is the last line that is signalling the error. The pertinent line from the backtrace which is the expansion of that last line reads: (let* ((k (car qualifiers)) (p (assq k mets-by-qual)) (v (cons method (cdr p)))) (progn (if p (setcdr p v) (progn (signal 'wrong-type-argument (list 'symbolp 'mets-by-qual)))) v)) .. The error is, in actual fact, the failure to find an entry for (car qualifiers) in the alist mets-by-qual. The error message given is rubbish and more than a little misleading. mets-by-qual is clearly a symbol. -- Alan Mackenzie (Nuremberg, Germany).