emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 a75d1da911: Make emacsclient add abbreviated file names to file


From: Eli Zaretskii
Subject: emacs-29 a75d1da911: Make emacsclient add abbreviated file names to file-name-history
Date: Mon, 19 Dec 2022 08:33:51 -0500 (EST)

branch: emacs-29
commit a75d1da911c07a201a19d8827cd74f181220c274
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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 fd740d126d..d963ee5b1e 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]