[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/projectile 18b48d7faa 1/2: [Fix #1754] `projectile-open-pr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/projectile 18b48d7faa 1/2: [Fix #1754] `projectile-open-projects` lists projects for which all buffers are closed |
Date: |
Thu, 27 Oct 2022 11:59:40 -0400 (EDT) |
branch: elpa/projectile
commit 18b48d7faa27a3113558e389a60d912e739d0526
Author: Miles Liu <miles@bung.cc>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
[Fix #1754] `projectile-open-projects` lists projects for which all buffers
are closed
---
CHANGELOG.md | 4 ++++
projectile.el | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd1b060b96..11d16b0ce9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@
* [#1591](https://github.com/bbatsov/projectile/issues/1591): Add `project.el`
integration that will make Projectile the default provider for project lookup.
+### Bug fixed
+
+* [#1799](https://github.com/bbatsov/projectile/pull/1799): Fix
`projectile-open-projects` lists projects for which all buffers are closed.
+
## 2.6.0 (2022-10-25)
### New features
diff --git a/projectile.el b/projectile.el
index cf39932d01..8e8b34a2eb 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5192,8 +5192,9 @@ An open project is a project with any open buffers."
(delq nil
(mapcar (lambda (buffer)
(with-current-buffer buffer
- (when (projectile-project-p)
- (abbreviate-file-name (projectile-project-root)))))
+ (when-let ((project-root (projectile-project-root)))
+ (when (projectile-project-buffer-p buffer project-root)
+ (abbreviate-file-name project-root)))))
(buffer-list)))))
(defun projectile--remove-current-project (projects)