1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-15 03:11:54 -07:00
emacs/test/lisp/net
Michael Albinus 3e4d4f472d Rework `abbreviate-file-name' in Tramp
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Add 'tramp-get-home-directory'.

* lisp/net/tramp-compat.el (tramp-file-name-handler): Declare.
(tramp-compat-exec-path): Use it.

* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
Add 'tramp-get-home-directory'.
(tramp-gvfs-handle-expand-file-name): Rewrite tilde handling.
(tramp-gvfs-handle-get-home-directory): New defun.

* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
Add 'tramp-get-home-directory'.
(tramp-sh-handle-get-home-directory): New defun.
(tramp-sh-handle-expand-file-name): Rewrite tilde handling.

* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Add 'tramp-get-home-directory'.
(tramp-smb-handle-expand-file-name): Rewrite tilde handling.
(tramp-smb-handle-get-home-directory): New defun.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add 'tramp-get-home-directory'.
(tramp-sudoedit-handle-expand-file-name): Rewrite tilde handling.
(tramp-sudoedit-handle-get-home-directory): New defun.

* lisp/net/tramp.el (tramp-file-name-for-operation):
Add `tramp-get-home-directory'.
(tramp-get-home-directory): New defun.
(tramp-handle-abbreviate-file-name): Use it.
(tramp-set-file-uid-gid, tramp-get-remote-uid)
(tramp-get-remote-gid): Use `tramp-file-name-handler'.
(tramp-get-remote-null-device): Do not check for null VEC, it
doesn't happen anymore.

* test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name-relative):
Reorder checks.
(tramp-test07-abbreviate-file-name):
(tramp--test-ange-ftp-p): Adapt tests.
2022-03-07 13:42:30 +01:00
..
dbus-resources Add D-Bus introspection tests 2020-09-30 11:19:41 +02:00
mailcap-resources Add some more mailcap tests. 2022-01-16 00:21:17 +01:00
netrc-resources Add a test for netrc folding parsing (bug#25769) 2021-08-14 16:08:48 +02:00
network-stream-resources Move more test data to follow our conventions 2020-10-23 21:07:26 +02:00
ntlm-resources Implement NTLM server for ntlm.el testing 2021-02-18 18:59:18 -05:00
puny-resources Add textsec-domain-suspicious-p 2022-01-18 11:53:09 +01:00
shr-resources Move shr.el test data to follow our conventions 2020-10-24 02:29:04 +02:00
tramp-archive-resources
browse-url-tests.el Fix `W' in Dired with non-ASCII file names 2022-03-07 03:28:32 +01:00
dbus-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dig-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
gnutls-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
hmac-md5-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mailcap-tests.el Add some more mailcap tests. 2022-01-16 00:21:17 +01:00
netrc-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
network-stream-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
newsticker-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
nsm-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ntlm-tests.el Remove the ELPA dependencies from test/Makefile.in 2022-02-22 03:18:13 +01:00
puny-tests.el Add textsec-domain-suspicious-p 2022-01-18 11:53:09 +01:00
rcirc-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rfc2104-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-cram-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-scram-rfc-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
secrets-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
shr-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
socks-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tramp-archive-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tramp-tests.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
webjump-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00