* registry.el (registry-prune-hard-candidates)
(registry-prune-soft-candidates): Helper methods for registry pruning.
- (registry-prune): Use them.
+ (registry-prune): Use them. Make the sort function optional.
2011-05-10 Julien Danjou <julien@danjou.info>
This is the key count of the :data slot."
(hash-table-count (oref db :data)))
- (defmethod registry-prune ((db registry-db) sortfun)
+ (defmethod registry-prune ((db registry-db) &optional sortfun)
"Prunes the registry-db object THIS.
Removes only entries without the :precious keys if it can,
then removes oldest entries first.