From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56255: 28.1.50; sxhash-equal does not change when object is modified Date: Thu, 30 Jun 2022 11:06:34 +0200 Message-ID: <871qv6frl1.fsf@gnus.org> References: <87v8sm70ma.fsf@localhost> <87y1xhu34f.fsf@gnus.org> <87r139u2y6.fsf@gnus.org> <874k05q70i.fsf@gnus.org> <87sfnokz6p.fsf@localhost> <87o7yblreq.fsf@gnus.org> <87r137kcbt.fsf@localhost> <87fsjnlqrh.fsf@gnus.org> <87ilojk5tq.fsf@localhost> <875ykjhcgh.fsf@gnus.org> <87czerk4qo.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56255@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 30 11:07:28 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 1o6q91-0006VV-TM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 11:07:27 +0200 Original-Received: from localhost ([::1]:47822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6q90-0000Yy-S2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 05:07:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6q8d-0000Yn-8d for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 05:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6q8c-0008JP-1F for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 05:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6q8b-00059m-MR for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 05:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2022 09:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56255 X-GNU-PR-Package: emacs Original-Received: via spool by 56255-submit@debbugs.gnu.org id=B56255.165658000719785 (code B ref 56255); Thu, 30 Jun 2022 09:07:01 +0000 Original-Received: (at 56255) by debbugs.gnu.org; 30 Jun 2022 09:06:47 +0000 Original-Received: from localhost ([127.0.0.1]:60974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6q8N-000593-2J for submit@debbugs.gnu.org; Thu, 30 Jun 2022 05:06:47 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:41246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6q8K-00058g-Jw for 56255@debbugs.gnu.org; Thu, 30 Jun 2022 05:06:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=L2Bsr33Sv/0hnXyAm/IbpzJhmlxH6UWDX8p8l7s20qI=; b=e5cUbhPa/UpgZSdtCJCBX1aiMa FgUtsxjRJrm7kPwVoROmluHWqFLHXt5AniVFFP8fYDXVFrmCr3WXY7cZb/20gH4q4CjrravNe/fhu eFdqathv8gLmCuzv5giY1RaUDpUCPZ7X4RvQeKdyZhYx5Sd+wtPWCL8LNjyhLR7YqiyI=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6q8C-0001em-Ax; Thu, 30 Jun 2022 11:06:38 +0200 In-Reply-To: <87czerk4qo.fsf@localhost> (Ihor Radchenko's message of "Wed, 29 Jun 2022 20:56:31 +0800") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEU5MEFBV5OSe3mv S0jgzsGgFi/fqD3////on9Q6AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YGHggxBYtrJbYAAAGpSURB VDjLjZBRcuMwCIbJDexMD1Bh9T1jojx3VDYHWC0ncKv7H6GAZDvO5GEZjwX6gB8BoDaOo/82G6DZ ycDpAcB/gbXJExhgzT0dNR6aPIB2d+7g9Awc9Xo9Btja9hesUXff9QgjvndFSxs2vXAOoYNhBxcA HMM+915xAQxhn3tdYIDjHjXIA5wx5gMICt6YESPzZKqI7UHhDKPeMdtPq9As5vCGEZA9dOyeJzGD NXLSkFXmDjhHhTTHBlDrKG7gQoQO9DpONHfwpS6ZjgItmaREB5gceIVWZxKJoGk40UT6NY2MUxK5 wtVdooJz18hURAhsbPWp0LyOSyTXP5CvNvVESWzeT9bna6f4AdgBzdNsW+CsEgUTxHh3ELVdW8Yk 8hd7he2EpHgxk4EE6V/lip7n8vwlIoUEaq33Wpk/hBLpyT/iZqDWb+ZUVNO8A6h8T6UImbuDxeOk 05tzXzpYrLXaklI5AE0sNwc9o6YGpINKupXbEcgG6PYCqDo9gdZKtV8DkkTuUToCzSxeUZcnoJ3a vLWD0sO6nq6igLaLI+iNX4Am+EhN/RePAOvmkHezkwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0w Ni0zMFQwODo0OTowNSswMDowMKh9W2cAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDYtMzBUMDg6 NDk6MDUrMDA6MDDZIOPbAAAAAElFTkSuQmCC X-Now-Playing: The Cure's _The Top_: "The top" 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:235696 Archived-At: Ihor Radchenko writes: > As for the hash tables and collisions. Are you sure that collisions are > OK? Consider the following example: > > (setq a (avl-tree--create #'org-element--cache-compare)) > (avl-tree-enter a '(headline (:begin 2))) > (setq tbl (make-hash-table :test #'equal)) > (puthash a 'value tbl) > (gethash a tbl) > (plist-put (nth 1 (avl-tree-first a)) :begin 10) > (gethash a tbl) ;; the value does not change! That has nothing to do with collisions -- you're free to alter a key as much as you want. It's just a normal Lisp object. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no