[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/projectile 7a5db740d7 1/2: Use literal directory name casi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/projectile 7a5db740d7 1/2: Use literal directory name casing during impl / test toggle |
Date: |
Tue, 6 Jun 2023 04:01:12 -0400 (EDT) |
branch: elpa/projectile
commit 7a5db740d7a98bf61101766b45d25cc037ab47be
Author: Len Trigg <len@realtimegenomics.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Use literal directory name casing during impl / test toggle
---
CHANGELOG.md | 1 +
projectile.el | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d596a3faa0..e42d8ac656 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@
* [#1285](https://github.com/bbatsov/projectile/pull/1825): By default, use
[fd](https://github.com/sharkdp/fd) in Git repositories instead of `git
ls-files` when it is installed, in order to solve the problem where deleted
files were still shown in `projectile-find-file` until their deletions were
staged. The user-facing behavior should be the same, although potentially with
different performance characteristics in large Git repositories. The old
behavior can be reclaimed by setting `pr [...]
* [#1831](https://github.com/bbatsov/projectile/issues/1831): Enable the
project.el integration only when `projectile-mode` is active.
+* [#1847](https://github.com/bbatsov/projectile/issues/1847): Use literal
directory name casing when toggling between impl and test.
## 2.7.0 (2022-11-22)
diff --git a/projectile.el b/projectile.el
index 5cb5055b5e..31ba699341 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3746,7 +3746,8 @@ Replace STRING in DIR-PATH with REPLACEMENT."
(let* ((project-root (projectile-project-root))
(relative-dir (file-name-directory (file-relative-name dir-path
project-root))))
(projectile-expand-root
- (replace-regexp-in-string string replacement relative-dir))))
+ ;; TODO: Use string-replace once we target emacs 28
+ (replace-regexp-in-string string replacement relative-dir t))))
(defun projectile--create-directories-for (path)
"Create directories necessary for PATH."