emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 41d2365d58: Fix xref to correctly display Windows absolute filena


From: Juanma Barranquero
Subject: master 41d2365d58: Fix xref to correctly display Windows absolute filenames
Date: Sun, 27 Nov 2022 08:20:34 -0500 (EST)

branch: master
commit 41d2365d58119421439ddedd16d11c53447b09fc
Author: Juanma Barranquero <lekktu@gmail.com>
Commit: Juanma Barranquero <lekktu@gmail.com>

    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.)
---
 lisp/progmodes/xref.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index c72041d70f..9b8d37a28e 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]