From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#56255: 28.1.50; sxhash-equal does not change when object is modified Date: Thu, 30 Jun 2022 19:16:49 +0800 Message-ID: <87pmiq765a.fsf@localhost> 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> <871qv6frl1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34214"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56255@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 30 13:16:32 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 1o6s9w-0008h8-A2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 13:16:32 +0200 Original-Received: from localhost ([::1]:36210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6s9u-0002XU-QR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 07:16:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6s9S-0002Wn-SY for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 07:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6s9S-0000Dn-JX for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 07:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6s9S-0005EQ-FX for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2022 11:16:02 +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.165658774820067 (code B ref 56255); Thu, 30 Jun 2022 11:16:02 +0000 Original-Received: (at 56255) by debbugs.gnu.org; 30 Jun 2022 11:15:48 +0000 Original-Received: from localhost ([127.0.0.1]:33072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6s9E-0005Db-L0 for submit@debbugs.gnu.org; Thu, 30 Jun 2022 07:15:48 -0400 Original-Received: from mail-oi1-f181.google.com ([209.85.167.181]:33533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6s9D-0005DO-AU for 56255@debbugs.gnu.org; Thu, 30 Jun 2022 07:15:47 -0400 Original-Received: by mail-oi1-f181.google.com with SMTP id u199so660965oie.0 for <56255@debbugs.gnu.org>; Thu, 30 Jun 2022 04:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=mY9Xbj0F5qGbPMmK1wC9RbjwRNqvwzSpoYXCJXO491c=; b=quHe1eqcRr/2Ci9nSk/o3CGOhHRXlzjisYWN73DZVP1pjnWH7DnYbxd/Cgmc83iCLx r5Xzw/x9WklH5L/47G1Wh4f+u29PhnuljH3VaAQfhM7j1Ne1qD+zT2lc1hCJ9I2CwwSQ X7t9/qDCUDkq704xyKhzJ9u5UHNLnNKspMp4PTmc5u794RzCG5s1Pi1cWnBJHjsggnZP CEa/HgJHNuYhDQLqXkDXvCKu5PGm7JKwziRLoJihnpDgxD0cCZ2cLEEm/QHEKcKHvV8L 5odOkyAumYh5JD7gzwrr9xRIGEejCqBs3aMSs3AxQBiZgQOdwI2FGXnIlRipJyxvsLqb FT7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=mY9Xbj0F5qGbPMmK1wC9RbjwRNqvwzSpoYXCJXO491c=; b=eaIWIl3ldLdfT+ViIFl9fD6BzQLYf86ETMmvxWQs3PCxldGAgunpmIGus5uTV1rg8N X0BB3Re1UhB9dQ9aoTkuiDL4DVNZbZsgKq9dxUSLoEVcmSftXfJsz2OspvcicC93fjFl NI/bRYe7QC7i22EqH7AY+GyGDFukoSSRSGOeqRTwxYwPjdbjI9xWxnt8hgpKb9VVFUx6 ZlAmsuoZf48aSpGzbDNb5IdQnCXjyQgbGP5EhDPZjdBid1rK33NIQGjuQhYcCYU9EXnZ Cv05zoEs3nd1rzqj9DjmXyNxs5szlOkBOnVUWk4AfSwes+AvJWlzF/YT0f19AsfSzNGV IrFQ== X-Gm-Message-State: AJIora/JaegmjEFfXSEpQux+9OvBLpN9/QUZ2EiBuR/j6UTxOxyeXg29 X6TnM7H/Bq4yL60G0ZzUcAQ= X-Google-Smtp-Source: AGRyM1uSdaCg62i44VexTZ5MITA7J1lFFBmd4c8p+4l9apuNudJyicuU2WCB6NyAbQCRxMDdJQhf4g== X-Received: by 2002:a05:6808:15a0:b0:335:65b9:944c with SMTP id t32-20020a05680815a000b0033565b9944cmr6379614oiw.236.1656587741629; Thu, 30 Jun 2022 04:15:41 -0700 (PDT) Original-Received: from localhost ([207.126.88.10]) by smtp.gmail.com with ESMTPSA id bl29-20020a056808309d00b0032ed2343100sm10214900oib.14.2022.06.30.04.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 04:15:40 -0700 (PDT) In-Reply-To: <871qv6frl1.fsf@gnus.org> 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:235719 Archived-At: Lars Ingebrigtsen writes: >> (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. You are indeed right. Thanks for the clarification! Best, Ihor