[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bea5eb7 2/2: project-switch-to-buffer: Improve Ido compatibility
From: |
Dmitry Gutov |
Subject: |
master bea5eb7 2/2: project-switch-to-buffer: Improve Ido compatibility |
Date: |
Mon, 22 Jun 2020 09:58:11 -0400 (EDT) |
branch: master
commit bea5eb77b3170203424179274bf26b9ce70de807
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
project-switch-to-buffer: Improve Ido compatibility
* lisp/progmodes/project.el (project-switch-to-buffer):
Check that the entry contains a non-nil CDR.
---
lisp/progmodes/project.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 60abf54..2f213da 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -810,7 +810,8 @@ is inside the directory hierarchy of the project's root."
(predicate
(lambda (buffer)
;; BUFFER is an entry (BUF-NAME . BUF-OBJ) of Vbuffer_alist.
- (and (not (eq (cdr buffer) current-buffer))
+ (and (cdr buffer)
+ (not (eq (cdr buffer) current-buffer))
(when-let ((file (buffer-local-value 'default-directory
(cdr buffer))))
(file-in-directory-p file root))))))