From bc96d266dcc9065b48370a6b441650cfa1e712e9 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 12 Aug 2024 17:24:08 +0200 Subject: [PATCH] (xref-backend-apropos) <(head project-dir)>: Normalize dir name. --- lisp/progmodes/project.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 7c58bc4a6ba..b567b8afc2d 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -984,7 +984,7 @@ The following commands are available: (cl-defmethod xref-backend-context ((_backend (head project-dir)) _id _kind)) (cl-defmethod xref-backend-restore ((_backend (head project-dir)) _context)) (cl-defmethod xref-backend-apropos ((backend (head project-dir)) pattern) - (let* ((dir (nth 1 backend)) + (let* ((dir (file-name-as-directory (nth 1 backend))) (project-files-relative-names t) (default-directory dir)) (project--find-regexp-in-files -- 2.39.2