]> git.eshelyaron.com Git - emacs.git/commitdiff
Retain compatibility with older project.el projects
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 5 Oct 2021 02:45:09 +0000 (05:45 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 5 Oct 2021 16:50:55 +0000 (19:50 +0300)
* lisp/progmodes/xref.el (xref--analyze):
Retain compatibility with older project.el and its compatible
project definitions (for standalone Xref from ELPA).

lisp/progmodes/xref.el

index 267ee16400e5b4a90925d206faf8485185a6a22b..1feb6ef9153e6ee6705d8f32e91612d2097bd1e6 100644 (file)
@@ -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)