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#66615: 30.0.50; Inconsistent 'number-or-marker' type definition in the cl- machinery Date: Wed, 18 Oct 2023 14:30:38 -0400 Message-ID: References: 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="21320"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66615@debbugs.gnu.org, mattias.engdegard@gmail.com To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 18 20:33:53 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 1qtBMf-0005GN-7S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Oct 2023 20:33:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtBMQ-00042Z-98; Wed, 18 Oct 2023 14:33:38 -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 1qtBMO-00041H-5f for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:33: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 1qtBMN-00047X-TZ for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:33:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtBMn-0007Ob-Ka for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Oct 2023 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66615 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Received: via spool by submit@debbugs.gnu.org id=B.169765399728370 (code B ref -1); Wed, 18 Oct 2023 18:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Oct 2023 18:33:17 +0000 Original-Received: from localhost ([127.0.0.1]:34663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtBM4-0007NW-S2 for submit@debbugs.gnu.org; Wed, 18 Oct 2023 14:33:17 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:42012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtBM2-0007NI-8l for submit@debbugs.gnu.org; Wed, 18 Oct 2023 14:33:15 -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 1qtBLW-0002mV-Ca for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:32:42 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtBLU-0003v2-DA; Wed, 18 Oct 2023 14:32:42 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3FA77805D6; Wed, 18 Oct 2023 14:32:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1697653956; bh=M8WUdh7xI1vjM4PJf7B9b1LteE3rVayn0NxPCd4qu9w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZPXa35niTjpgts1NpQ1APD/1WFPQlu2pyfbcnKlt2+bFP3TZ2CVQ/AlB5sEGTQUe4 ewCtsOXbuSZmryA2NXStKg/yJ3ahzVnsbkXrux81/sBqObRMYQ1/vBI3Doz0qAje13 sMpjfLoNnzajp4k4qlkyqtnNMf6i7QMDgkY25+oWjUsxA9FIwE1K1lMyNrk1W0b39u Ykc+CBW/vCZAPQawgXobq+6hDtTbxNPPugc87OQ5ISgqMXP/7JMio3wHt2BAV0DbJt 2fHfcuURXiNk9G9H3x2cH8+7fJiB8zmt4wCmDC9WjSOH1Cg1rq34VGIDMG+kYKaeYm RiqjAc3herMpA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AD727804BC; Wed, 18 Oct 2023 14:32:36 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9DC1812038A; Wed, 18 Oct 2023 14:32:36 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Wed, 18 Oct 2023 13:59:21 -0400") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272675 Archived-At: > My question is, why do we consider 'number-or-marker' in the first place > a type if we support the or syntax in `cl-typep' like > (cl-typep 3 '(or marker number)) ? I'm not sure I can give a good answer in general, but I can tell you some reasons that explain some of what we see: - There is a `number-or-marker-p` primitive and `cl-typep` doesn't know how to use it for `(or number marker)`. - method specializers (currently) can't be `(or number marker)` but can be `number-or-marker`. > I'd like to fix this inconsistency in order to progress with my > development, originally I worked out the attached patch but I now > suspect that (unless there's a specific reason) we should just remove > 'number-or-marker' as a type entirely instead. I'd lean towards keeping it :-) > PS also I think we have a similar issue/question with > 'integer-or-marker'. Yup. Stefan