]> git.eshelyaron.com Git - emacs.git/commit
Support abbreviating home directory of Tramp filenames
authorJim Porter <jporterbugs@gmail.com>
Mon, 15 Nov 2021 12:33:07 +0000 (13:33 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 15 Nov 2021 12:33:07 +0000 (13:33 +0100)
commitbf505a63f98ed61934a8fb81ec65c96859606b6e
treedf91fd6e5fe4150b273234e9dd13c833706e4267
parentcff1702a52d9f116d9180a1a1597130474574fd8
Support abbreviating home directory of Tramp filenames

* doc/lispref/files.texi (Magic File Names): Mention
'abbreviate-file-name' in the list of magic file name handlers.

* etc/NEWS: Announce the change.

* lisp/files.el (file-name-non-special):
* lisp/net/tramp.el (tramp-file-name-for-operation):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add 'abbreviate-file-name'.

* lisp/files.el (directory-abbrev-make-regexp):
(directory-abbrev-apply): New functions.
(abbreviate-file-name): Check for file name handler.

* test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name):
New test.
doc/lispref/files.texi
etc/NEWS
lisp/files.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el