Function: projectile-maybe-limit-project-file-buffers
projectile-maybe-limit-project-file-buffers is a byte-compiled
function defined in projectile.el.
Signature
(projectile-maybe-limit-project-file-buffers &optional PROJECT-ROOT)
Documentation
Limit the opened file buffers for a project.
The function simply kills the last buffer, as it's normally called when opening new files. PROJECT-ROOT defaults to the current project.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-maybe-limit-project-file-buffers (&optional project-root)
"Limit the opened file buffers for a project.
The function simply kills the last buffer, as it's normally called
when opening new files. PROJECT-ROOT defaults to the current project."
(when projectile-max-file-buffer-count
(let ((project-buffers (projectile-project-buffer-files project-root)))
(when (length> project-buffers projectile-max-file-buffer-count)
(kill-buffer (car (last project-buffers)))))))