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#66615: 30.0.50; Inconsistent 'number-or-marker' type definition in the cl- machinery Date: Thu, 19 Oct 2023 17:24:23 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39530"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 66615@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 23:27:22 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 1qtaY6-000A0U-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 23:27:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtaVR-0007ix-Te; Thu, 19 Oct 2023 17:24:37 -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 1qtaVQ-0007eh-BK for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 17:24:36 -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 1qtaVQ-00024q-0r for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 17:24:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtaVq-00055s-D0 for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 17:25: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: Thu, 19 Oct 2023 21:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66615 X-GNU-PR-Package: emacs Original-Received: via spool by 66615-submit@debbugs.gnu.org id=B66615.169775070019569 (code B ref 66615); Thu, 19 Oct 2023 21:25:02 +0000 Original-Received: (at 66615) by debbugs.gnu.org; 19 Oct 2023 21:25:00 +0000 Original-Received: from localhost ([127.0.0.1]:38013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtaVn-00055Y-Q8 for submit@debbugs.gnu.org; Thu, 19 Oct 2023 17:25:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtaVk-00055I-N2 for 66615@debbugs.gnu.org; Thu, 19 Oct 2023 17:24:58 -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 1qtaVD-0001yz-Ve; Thu, 19 Oct 2023 17:24:24 -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=Yk/ftiwvveEW3jW6VCFNAhAhzUpMJ+KNpgBohsPkBSg=; b=e4YAEyEiA9hchjjS5ruu +tZwD4NzFxqlNw5kPOwT1169WlZoeu8jifvXXHWUcIDtIccK47fuJVtmoYLpnckwiqyzvafY4OaTn lO/kdkypZadETpzgFGcc8FKebMe8Uf0TcnUEWEQx+LdYh38AVwdHzXlJXVmp9l559BvugBLxAChHW 3nuFzmhFiZ1HGfzgOcvM4AvQNzTYLlVc7dlee2Vt11Awsp9yNnt7E6pEnmxlp0TxhmBz5S/MYilW2 nE33rZxOygXXMjy/0SA2I96b8Oa5LNJMlNI04cXSRjTmi8qs0yL9fRW4sglnx0STV1rFfnXCEVboh uztyWLJ8EfWKQA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qtaVD-0003uK-OT; Thu, 19 Oct 2023 17:24:23 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 19 Oct 2023 10:22:10 -0400") 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:272761 Archived-At: Stefan Monnier writes: >>>> - There is a `number-or-marker-p` primitive and `cl-typep` doesn't know >>>> how to use it for `(or number marker)`. >>> Well we could just remove 'number-or-marker-p' =F0=9F=98=83 > > Indeed, or we could teach `cl-typep` how to make use of it. > >>> I see your point, actually my main drive is to make the situation more >>> coherent so I'm unblocked in the first place, just the method >>> specializer functionality is a blocker for removing 'number-or-marker'. > > That's what I had understood, and indeed there were some loose ends there. > >> Okay with a567faf4c2b I added 'number-or-marker' where it was missing. > > Thanks. I also added corresponding `integer-or-marker`. Hi Stefan thanks, I've to question now the following entry introduced in `cl--typeof-types' for correctness: (integer number integer-or-marker number-or-marker atom) The doc says : Each element has the form (TYPE . SUPERTYPES) where TYPE is one of the symbols returned by =E2=80=98type-of=E2=80=99, and SUPERTYPES is the li= st of its supertypes from the most specific to least specific. And indeed not every 'number' is an 'integer-or-marker'. I suspect that's the reason why this commit introduces few failures in the native-comp testsuite. At this point of the night I'm not sure if and how 'integer-or-marker' can be added correctly to this representation. Best Regards Andrea