]> git.eshelyaron.com Git - emacs.git/commit
Avoid slow remote file name completion annotations
authorEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 17:35:25 +0000 (18:35 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 17:35:25 +0000 (18:35 +0100)
commit60a2f0148d66e7a395bd54c3f3d1dd39b29b3707
tree944d62804889c7ae6bdc8c7dbecf87bce4c0c5ba
parent7ecde6873047508fded7b62bd35133594fde6f08
Avoid slow remote file name completion annotations

* lisp/files.el (file-name-attributes-completion-annotation)
(file-name-completion-annotation): New function.
* lisp/minibuffer.el (completion-file-name-affixation): Use it.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist)
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): Register
handler function for 'file-name-completion-annotation'.
(tramp-sh-handle-file-name-completion-annotation)
* lisp/net/tramp.el (tramp-file-name-for-operation): Handle it.

* doc/lispref/files.texi (File Attributes)
(Magic File Names): Document 'file-name-completion-annotation'.

* etc/NEWS: Announce it.
doc/lispref/files.texi
etc/NEWS
lisp/files.el
lisp/minibuffer.el
lisp/net/tramp-sh.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el