From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#65051: internal_equal manipulates symbols with position without checking symbols-with-pos-enabled. Date: Fri, 11 Aug 2023 14:18:15 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11276"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 65051@debbugs.gnu.org, Stefan Monnier To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 11 13:19:33 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 1qUQB2-0002hj-Kj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Aug 2023 13:19:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUQAa-0007XZ-Hu; Fri, 11 Aug 2023 07:19:04 -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 1qUQAY-0007XE-VG for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 07:19:02 -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 1qUQAY-0001Uf-NO for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 07:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUQAY-0001G8-Jm for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Aug 2023 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65051 X-GNU-PR-Package: emacs Original-Received: via spool by 65051-submit@debbugs.gnu.org id=B65051.16917527124782 (code B ref 65051); Fri, 11 Aug 2023 11:19:02 +0000 Original-Received: (at 65051) by debbugs.gnu.org; 11 Aug 2023 11:18:32 +0000 Original-Received: from localhost ([127.0.0.1]:45055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUQA3-0001F4-PD for submit@debbugs.gnu.org; Fri, 11 Aug 2023 07:18:32 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:50329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUQA0-0001En-78 for 65051@debbugs.gnu.org; Fri, 11 Aug 2023 07:18:30 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 3045B32004ED; Fri, 11 Aug 2023 07:18:21 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 11 Aug 2023 07:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1691752700; x=1691839100; bh=8od6tA8Ui7wL/C73XQMmx6wp5yANU/fbG7e eDZsNKlg=; b=D9l2DAz7O3M1Hru3VxS77guIX5sMwYLvNVAbPRQCGtWZxTEsKJV jkWwbV73d6DlrQoSfwTR8mtmdXRwKk4+2XIcI8MvR1V3IYrSRlYbD+UrTIQB+ikL fIbsJPsrFifxUim5zhmoGPZQ+MMDQQcIFpk+IUD4e6XFq8qhmN77E1wLXWGOwTSk 8bQNlYTAArgnI8UIWr1WoXSUNQNkJuw0/ytNvnK8if19GVfNHBVYuj+YjMyOFTMz bmLYPvXu44c4tiieqcuimQB0G22j6ZI1y1MtBN6DzJFRB5eIJeWHocYRhK7RZI+2 dgWXoRxRgaoPkVHWFJIAqyEdzIMR6pYrsEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1691752700; x=1691839100; bh=8od6tA8Ui7wL/C73XQMmx6wp5yANU/fbG7e eDZsNKlg=; b=x8nY8fyQQNnb2zt/0pjLoKd+5c6OoCQBEHOilzVPWGJMgkTwjCV WngZq2t6hzizeOF7tf+QzSjSZ1ofvrYwV8YMvYccmO5nuHtLVfhBxevA5qoqHS4K BHLS/16X70PAIe+yYypqmHZWpJ3S1ZnLWdM6acnmE2R3RBrbY2pguC7LR4ACoyjt hFqB2hJJZpyONUnDBjbvcPQfz4ZBoIZIKJVKHaTzzfHSOXkzMeSQRIOjW/3hbFj+ uh7hxPjbEwGn8d+E5K+o/dx/OUfuLPTZsRqtRqcCamgnxaIUsa5CHJ71Q+yDk1dY IwUSOTK7WL5ehUwGe25vL9Eoq/vunhMZL8g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleekgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Aug 2023 07:18:18 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:267207 Archived-At: On 11/08/2023 13:42, Alan Mackenzie wrote: > Hello, Dmitry. > > On Fri, Aug 11, 2023 at 03:51:09 +0300, Dmitry Gutov wrote: >> On 08/08/2023 18:33, Alan Mackenzie wrote: >>>> So I'm still wondering why you think it's a bug. >>> Because it violates the definition and basic understanding of equal. >>> It's a special case when no special case is needed. > >> Does 'equal'-ity of strings with and without text properties (or with >> different text properties) violate these as well? > > Maybe, maybe not. It depends on whether you consider the text > properties on a string (or buffer portion) an essential part of the > string or not. ...or, like, a metadata attached to a value. Which is an approach to have its benefits as well, seeing how we've been living with it for many years. > I think it was possibly a design error to have text > properties conceptually as a part of a string/buffer rather than > something associated with it, like an overlay. The fact that equal > ignores these properties supports this view. We needed a reference to access the properties from. Overlays are different because they attach to a buffer. There is nothing else to attach to when you have a string value. Which seems very similar to the situation with symbols, I think.