Function: project--buffer-list
project--buffer-list is a byte-compiled function defined in
project.el.gz.
Signature
(project--buffer-list PR)
Documentation
Return the list of all buffers in project PR.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defun project--buffer-list (pr)
"Return the list of all buffers in project PR."
(let ((conn (file-remote-p (project-root pr)))
bufs)
(dolist (buf (buffer-list))
;; For now we go with the assumption that a project must reside
;; entirely on one host. We might relax that in the future.
(when (and (equal conn
(file-remote-p (buffer-local-value 'default-directory buf)))
(equal pr
(with-current-buffer buf
(project-current))))
(push buf bufs)))
(nreverse bufs)))