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 08:02:42 -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="35720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66615-done@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 14:04:25 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 1qtRlI-0008x3-8m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 14:04:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtRko-00051e-8D; Thu, 19 Oct 2023 08:03:54 -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 1qtRkX-0004Ng-Hp for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 08:03:40 -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 1qtRkW-0002hA-7M for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 08:03:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtRkw-0007S6-Oy for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 08:04:02 -0400 Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2023 12:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 66615 X-GNU-PR-Package: emacs Mail-Followup-To: 66615@debbugs.gnu.org, acorallo@gnu.org, acorallo@gnu.org Original-Received: via spool by 66615-done@debbugs.gnu.org id=D66615.169771700028584 (code D ref 66615); Thu, 19 Oct 2023 12:04:02 +0000 Original-Received: (at 66615-done) by debbugs.gnu.org; 19 Oct 2023 12:03:20 +0000 Original-Received: from localhost ([127.0.0.1]:36007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtRkF-0007Qy-RU for submit@debbugs.gnu.org; Thu, 19 Oct 2023 08:03:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtRkD-0007Qg-Ay for 66615-done@debbugs.gnu.org; Thu, 19 Oct 2023 08:03:18 -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 1qtRjh-0002Ly-8y; Thu, 19 Oct 2023 08:02:45 -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=WjWMR3V/8qoMmkeN0VctELnXiO4S4VfN/rDt+Hq/R9g=; b=HfDP0Cwd6A7aTRZr5F/S 1dPsD8TKT5Q0hGgViK84wuVS8S4v0YqBKJ4ihoqI9ungy5AosmQ5Qn4yzgp/zt1gfPduDY8pauh30 CKrLvlH0YNNPxBnrWRcnnfNKT1PZDw1DfRWNxUfeRDojbKypJ/8gAfSg3AW2kDtpSODMw9Wh2azKK ttEIHnTvWK/y8wAjtlTwJPMopMCWrLj3Pz/oEa+HwBIwojAGOZ6UMu1174HOEHn/eFORS85RpFrSe IVjMTJpsYi3YprCzlDJefwT+9aLCKL7N0mqxQ8DQin0kaXkx5ODDe28dCmzkfDP4Wq8HF4GtgImY1 i2BoVgxbTfREhA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qtRje-0002oF-CO; Thu, 19 Oct 2023 08:02:44 -0400 In-Reply-To: (Andrea Corallo's message of "Thu, 19 Oct 2023 04:56:42 -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:272727 Archived-At: Andrea Corallo writes: > [re-replaying as for some reason our responses didn't reach the list] > > Stefan Monnier writes: > >>> 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)`. > > Well we could just remove 'number-or-marker-p' =F0=9F=98=83 > >> - method specializers (currently) can't be `(or number marker)` but can = be >> `number-or-marker`. > > Okay this is more difficult to fix... :/ > >>> 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 :-) > > 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'. > > I think adding 'number-or-marker' where missing is probably the best > solution for now. Okay with a567faf4c2b I added 'number-or-marker' where it was missing. Closing this, happy to reopen if necessary. Thanks! Andrea