Subject: bug#68668: 30.0.50; Invalid hash table test: tab-bar--auto-width-hash-test

From: Mattias Engdegård <[email-masked]>
Date: Wed, 31 Jan 2024 14:18:57 +0100

31 jan. 2024 kl. 14.05 skrev Gerd Möllmann <[email-masked]>:

> why not reuse an existing entry for a given name?

We mustn't violate invariants of existing hash-table objects when the test is redefined. Consider:

(define-hash-table-test 'mytest #'cmp1 #'hash1)
(setq h (make-hash-table :test 'mytest))
...
(define-hash-table-test 'mytest #'cmp2 #'hash2)
; h must still use cmp1 and hash1 at this point