[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/breadcrumb 2292a57f11 1/2: Replace project-name with mu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/breadcrumb 2292a57f11 1/2: Replace project-name with much faster and decent alternative |
Date: |
Tue, 5 Sep 2023 15:57:28 -0400 (EDT) |
branch: externals/breadcrumb
commit 2292a57f11e4ca07e3304b69ef42b929569e41d0
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Replace project-name with much faster and decent alternative
* breadcrumb.el (bc--project-crumbs-1): Use file-name-base +
directory-file-name.
---
breadcrumb.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/breadcrumb.el b/breadcrumb.el
index cf527afacc..542f4f6261 100644
--- a/breadcrumb.el
+++ b/breadcrumb.el
@@ -343,8 +343,8 @@ propertized crumbs."
collect (bc--format-project-node s more root upto) into retval
finally
(cl-return
- (if project
- (cons (propertize (project-name project)
+ (if root
+ (cons (propertize (file-name-base (directory-file-name root))
'bc-dont-shorten t
'face 'bc-project-base-face)
retval)