diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 267ee16400e..1feb6ef9153 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1025,7 +1025,7 @@ Return an alist of the form ((GROUP . (XREF ...)) ...)." (eq xref-file-name-display 'project-relative) (project-current))) (project-root (and project - (expand-file-name (project-root project))))) + (expand-file-name (xref--project-root project))))) (mapcar (lambda (pair) (cons (xref--group-name-for-display (car pair) project-root)