From 13bb49bc0b829cfd2ec713a27a81b19b3f749cd5 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' (bug#58447). --- 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 690b9bb5cd6..c1245704bcc 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -955,7 +955,7 @@ by the user at will." 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.39.5