]> 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>
Fri, 19 Jan 2024 10:35:36 +0000 (11:35 +0100)
commite762c45b1e4045ac782860a61a21dd97d79522f8
tree4a4eb2a3c49803730d31be65dfff7540fd810ff9
parent6f738772612ed5e16a917cb2640ff19e91974a31
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