From 19957ae6b2db0c40de37c7c290a7113b0b33e6b7 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Mon, 28 Nov 2022 23:50:41 +0100 Subject: [PATCH] In project-find-file, add abbreviated file names to history * lisp/progmodes/project.el (project--read-file-cpd-relative): Use 'abbreviate-file-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 5b8648031f..3d567b42a0 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -954,7 +954,7 @@ project--read-file-cpd-relative hist mb-default))) (absname (expand-file-name relname common-parent-directory))) (when (and hist history-add-new-input) - (add-to-history hist absname)) + (add-to-history hist (abbreviate-file-name absname))) absname)) (defun project--read-file-absolute (prompt -- 2.38.1