bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56255: 28.1.50; sxhash-equal does not change when object is modified


From: Ihor Radchenko
Subject: bug#56255: 28.1.50; sxhash-equal does not change when object is modified
Date: Thu, 30 Jun 2022 19:16:49 +0800

Lars Ingebrigtsen <larsi@gnus.org> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]