]> git.eshelyaron.com Git - emacs.git/commit
Allow equal user-defined hash table tests with different names
authorMattias EngdegÄrd <mattiase@acm.org>
Wed, 31 Jan 2024 11:21:12 +0000 (12:21 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:17:01 +0000 (21:17 +0100)
commit245b7520c211f147eba10bff0b00e68ba32546fc
tree8ae863295bc01990651c727bb42d3ca0e452c7bf
parente733003cf24d6cb6b9ef2d850a37264fcdaa601c
Allow equal user-defined hash table tests with different names

Hash tables using different user-defined tests defined identically
sometimes ended up using the wrong test (bug#68668).

* src/fns.c (get_hash_table_user_test): Take test name into account
when matching the test object.
* test/src/fns-tests.el (fns--define-hash-table-test): New.

(cherry picked from commit 7e85311a9113a4720ec9d7b06188646fc7bdae0b)
src/fns.c
test/src/fns-tests.el