Eric Abrahamsen writes: > Ted Zlatanov writes: [...] >> The registry has ERT tests, which I thought covered this case. Can you >> look at `tests/gnustest-registry.el'? As a first step, can you try >> making tests to demonstrate the problems? > > Will do. Okay, turns out there were tests, but the bit that tests pruning was commented out :) This is the first in a (gradual) series of patches. It does very little except: 1. Adjust `registry-prune' to do what the docstring says: return the total number of entries pruned 2. Uncomment the pruning test and adjust it so it correctly catches the number of pruned entries. Test should fail. Over the next couple of days I'll add another test to check that entries are sorted correctly before pruning, and then take a stab at fixing the pruning itself. E