From a75d1da911c07a201a19d8827cd74f181220c274 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 19 Dec 2022 15:33:09 +0200 Subject: [PATCH] Make emacsclient add abbreviated file names to file-name-history * lisp/server.el (server-visit-files): Use 'file-name-history--add' to add the visited files to history. (Bug#60097) --- lisp/server.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/server.el b/lisp/server.el index fd740d126df..d963ee5b1e0 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -1495,7 +1495,7 @@ so don't mark these buffers specially, just visit them normally." minibuffer-auto-raise)) (filen (car file)) (obuf (get-file-buffer filen))) - (add-to-history 'file-name-history filen) + (file-name-history--add filen) (if (null obuf) (progn (run-hooks 'pre-command-hook) -- 2.39.2