[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gtags-mode 6e0aa53a11 1/2: Use expand-file-name instead
From: |
ELPA Syncer |
Subject: |
[elpa] externals/gtags-mode 6e0aa53a11 1/2: Use expand-file-name instead of concat |
Date: |
Wed, 24 Apr 2024 12:58:21 -0400 (EDT) |
branch: externals/gtags-mode
commit 6e0aa53a11d79526504fdd2ea6527a08cb8adf5b
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Use expand-file-name instead of concat
This seems more correct and avoids double // in filenames
---
gtags-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gtags-mode.el b/gtags-mode.el
index e98271fe61..efd0b118d0 100644
--- a/gtags-mode.el
+++ b/gtags-mode.el
@@ -321,7 +321,7 @@ Return as a list of xref location objects."
(lambda (dir)
(when (string-prefix-p root dir)
(mapcar (lambda (file)
- (concat root (substring-no-properties file 1)))
+ (expand-file-name file root))
(gtags-mode--exec-sync
'("--path-style=through" "--path")
(string-remove-prefix root dir)))))