1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

Fix xref to correctly display Windows absolute filenames

* lisp/progmodes/xref.el (xref--group-name-for-display):
Use `file-name-absolute-p' instead of faking it. (Discussed
in bug#59628.)
This commit is contained in:
Juanma Barranquero 2022-11-27 12:32:04 +01:00
parent bacba02e5c
commit 41d2365d58

View File

@ -1165,7 +1165,7 @@ to that style. Otherwise it is returned unchanged."
(cl-ecase xref-file-name-display
(abs group)
(nondirectory
(if (string-match-p "\\`~?/" group)
(if (file-name-absolute-p group)
(file-name-nondirectory group)
group))
(project-relative