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