1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-11 17:31:35 -07:00

Fix arguments to project--buffer-check when reading a project buffer

* lisp/progmodes/project.el (project--read-project-buffer): Pass the
buffer object to `project--buffer-check', not the (BUF-NAME . BUF-OBJ)
cons.
This commit is contained in:
Steven Allen 2026-02-21 14:34:15 -08:00 committed by Sean Whitton
parent 0be64b2f25
commit 27af6bfdfb

View file

@ -1863,10 +1863,10 @@ Return non-nil if PROJECT is not a remote project."
(predicate
(lambda (buffer)
;; BUFFER is an entry (BUF-NAME . BUF-OBJ) of Vbuffer_alist.
(and (memq (cdr buffer) buffers)
(not
(project--buffer-check
buffer project-ignore-buffer-conditions)))))
(setq buffer (cdr buffer))
(and (memq buffer buffers)
(not (project--buffer-check
buffer project-ignore-buffer-conditions)))))
(completion-ignore-case read-buffer-completion-ignore-case)
(buffers-alist
(if (and (fboundp 'uniquify-get-unique-names)