From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54079: 29.0.50; Method dispatching eratically fails Date: Sun, 20 Feb 2022 22:16:25 -0500 Message-ID: References: <87bkz113hz.fsf@web.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54079@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 21 04:17:11 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 1nLzCI-0005lU-NN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 04:17:10 +0100 Original-Received: from localhost ([::1]:40962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLzCH-0002g9-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 22:17:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLzCA-0002fk-Fr for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 22:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLzCA-0008JQ-6R for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 22:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLzCA-0003Yh-3A for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 22:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Feb 2022 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54079 X-GNU-PR-Package: emacs Original-Received: via spool by 54079-submit@debbugs.gnu.org id=B54079.164541339713646 (code B ref 54079); Mon, 21 Feb 2022 03:17:02 +0000 Original-Received: (at 54079) by debbugs.gnu.org; 21 Feb 2022 03:16:37 +0000 Original-Received: from localhost ([127.0.0.1]:34336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLzBl-0003Y2-2v for submit@debbugs.gnu.org; Sun, 20 Feb 2022 22:16:37 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLzBi-0003Xn-Jc for 54079@debbugs.gnu.org; Sun, 20 Feb 2022 22:16:35 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 47A081001CB; Sun, 20 Feb 2022 22:16:28 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C825510012E; Sun, 20 Feb 2022 22:16:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1645413386; bh=bSDSm66t4FpBvNDrJbe9MthNwWASnjEVx/5ueDrb+LA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=nqR7HCu8XoZzscIJ5zQg1jAhDtCRGeW7z4i/UucGuNk0d8n1mwBxRHrqfn6t/DAiA MDEc6hT6wRQrW1P6nnbyVB03kA59PddKxckpYuEWUN2a9OCz42BPculV9uxMSf6LqH s8vh6lX5Jm3ioRRjAWDulDKpSVNIZ7OEw3bf12fU34asvkaG1nOjwWhqrF6G0U16cK 9X0nQLGUmwUU6hFIEpnkIpA5sON3sEBzqV8CZ6V8W2byrzD9W4pjOJJBjLEASIC3bs lFfWIBFD9Tw8C8CpO801pyMVZmrvkEx8GT+SiNgWyrtJr2BYk6TYUvJm6SgSmXcP9E a3m//IqQKBonA== Original-Received: from pastel (unknown [45.72.237.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9A64D120813; Sun, 20 Feb 2022 22:16:26 -0500 (EST) In-Reply-To: <87bkz113hz.fsf@web.de> (Michael Heerdegen's message of "Mon, 21 Feb 2022 01:12:56 +0100") 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:227300 Archived-At: Michael Heerdegen [2022-02-21 01:12:56] wrote: > I extended register.el with new register content types. This involves a > lot of method definitions like > > (cl-defmethod register-val-jump-to ((val TYPE) arg)) > > where TYPE refers to some of my self defined container types for > register contents. Can you show the actual code (the bodies of the `cl-defmethod`s aren't important, but the TYPE part could, or maybe if they're inside something else (maybe an `eval-and-compile` or something like that?))? How is the type defined? `cl-defstruct`? `defclass`? > My problem: the dispatching of these methods is often erratically > broken. The methods then are not used although their type should match. > The according test for VAL being of the TYPE, e.g. by using the > according type predicate, succeeds. What does `type-of` return on VAL? Stefan