From d21dc35e0cd7afd8fb2d4d9657681b622394463b Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Tue, 18 Feb 2025 09:35:27 +0100 Subject: [PATCH] (project--file-completion-table): Provide completion annotations --- lisp/progmodes/project.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 8656c20bf26..3d437671d8c 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -320,7 +320,11 @@ end it with `/'. DIR must be either `project-root' or one of grep-find-ignored-files))) (defun project--file-completion-table (all-files) - (completion-table-with-metadata all-files '((category . project-file)))) + (completion-table-with-metadata + all-files + `((category . project-file) + ,@(when completions-detailed + '((affixation-function . completion-file-name-affixation)))))) (cl-defmethod project-root ((project (head transient))) (cdr project)) -- 2.39.5