]> git.eshelyaron.com Git - emacs.git/commitdiff
Make emacsclient add abbreviated file names to file-name-history
authorEli Zaretskii <eliz@gnu.org>
Mon, 19 Dec 2022 13:33:09 +0000 (15:33 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 19 Dec 2022 13:33:09 +0000 (15:33 +0200)
* lisp/server.el (server-visit-files): Use
'file-name-history--add' to add the visited files to history.
(Bug#60097)

lisp/server.el

index fd740d126df2b3ea70d743a141d50d46f11a1514..d963ee5b1e0d6a4609d9a7f46b0b26f0283a0329 100644 (file)
@@ -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)