Function: projectile--frecency-prune
projectile--frecency-prune is a byte-compiled function defined in
projectile.el.
Signature
(projectile--frecency-prune FILES)
Documentation
Drop the lowest-scoring entries of FILES down to the configured limit.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--frecency-prune (files)
"Drop the lowest-scoring entries of FILES down to the configured limit."
(let ((now (projectile-time-seconds))
(entries nil))
(maphash (lambda (file entry)
(push (cons file (projectile--frecency-score entry now)) entries))
files)
(dolist (victim (nthcdr projectile-frecency-max-files
(seq-sort-by #'cdr #'> entries)))
(remhash (car victim) files))))