From: Eli Zaretskii Date: Mon, 19 Dec 2022 13:33:09 +0000 (+0200) Subject: Make emacsclient add abbreviated file names to file-name-history X-Git-Tag: emacs-29.0.90~1071 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a75d1da911c;p=emacs.git 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) --- 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)