1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-11 17:31:35 -07:00
emacs/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
..
ange-ftp.el Sanitize ls switches in ange-ftp (bug#53360) 2022-02-07 10:07:15 +01:00
browse-url.el Merge from origin/emacs-28 2022-03-07 06:33:56 +01:00
dbus.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
dictionary-connection.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dictionary.el * lisp/net/dictionary.el (dictionary-context-menu): Use package prefix. 2022-01-15 20:58:31 +02:00
dig.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dns.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudc-bob.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudc-export.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudc-hotlist.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudc-vars.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudc.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
eudcb-bbdb.el EUDC: Fix a quoting bug in the BBDB backend 2022-01-21 17:47:46 -05:00
eudcb-ldap.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudcb-mab.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eudcb-macos-contacts.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eww.el Make eww work better on Tramp HTML 2022-02-20 16:14:05 +01:00
gnutls.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
goto-addr.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
hmac-def.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
hmac-md5.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
imap.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ldap.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mailcap.el mailcap: Docfix & handle function-viewer case in mailcap-view-file 2022-01-15 11:27:20 +01:00
mairix.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
net-utils.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
netrc.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
network-stream.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
newst-backend.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
newst-plainview.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
newst-reader.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
newst-ticker.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
newst-treeview.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
newsticker.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
nsm.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ntlm.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
pop3.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
puny.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
quickurl.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rcirc.el Revert "; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for" 2022-02-19 22:04:44 +01:00
rfc2104.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rlogin.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-cram.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-digest.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-ntlm.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl-scram-rfc.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
sasl-scram-sha256.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sasl.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
secrets.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
shr-color.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
shr.el Fix compilation warning introduced by previous shr.el change 2022-02-20 16:14:49 +01:00
sieve-manage.el Add `auth-info-password' and use it instead of ad hoc code 2022-01-07 14:48:59 -05:00
sieve-mode.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sieve.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
snmp-mode.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
soap-client.el soap-client: Add minimum supported Emacs version 2022-02-03 09:19:03 -05:00
soap-inspect.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
socks.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
telnet.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tramp-adb.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-archive.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-cache.el Merge from origin/emacs-28 2022-02-04 06:30:30 +01:00
tramp-cmds.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tramp-compat.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-crypt.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-ftp.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tramp-fuse.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
tramp-gvfs.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-integration.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-rclone.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-sh.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-smb.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-sshfs.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-sudoedit.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
tramp-uu.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tramp.el Rework `abbreviate-file-name' in Tramp 2022-03-07 13:42:30 +01:00
trampver.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
webjump.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
zeroconf.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00