1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 17:01:01 -08:00
emacs/lisp/net
Michael Albinus 9ed5c39aad Refactor Tramp
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
Use `tramp-adb-handle-get-remote-gid' and
`tramp-adb-handle-get-remote-uid'.
(tramp-adb-handle-file-attributes): Use `tramp-convert-file-attributes'.
(tramp-do-parse-file-attributes-with-ls): Remove ID-FORMAT.
(tramp-adb-handle-directory-files-and-attributes):
Use `tramp-skeleton-directory-files-and-attributes'.
(tramp-adb-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
(tramp-adb-handle-copy-file, tramp-adb-handle-rename-file):
Use `tramp-barf-if-file-missing'.
(tramp-adb-handle-get-remote-uid)
(tramp-adb-handle-get-remote-gid): New defuns.

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
Use `tramp-archive-handle-directory-files'.
(tramp-archive-handle-directory-files): New defun.

* lisp/net/tramp-cache.el (tramp-file-property-p): New defun.

* lisp/net/tramp-compat.el (tramp-compat-take): New defalias.

* lisp/net/tramp-crypt.el (tramp-crypt-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.
(tramp-crypt-handle-directory-files):
Use `tramp-skeleton-directory-files'.

* lisp/net/tramp-fuse.el (tramp-fuse-handle-directory-files):
Use `tramp-skeleton-directory-files'.

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.

* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.

* lisp/net/tramp-sh.el (tramp-readlink-file-truename)
(tramp-stat-file-attributes)
(tramp-stat-directory-files-and-attributes): New defconsts.
(tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes): Adapt.
(tramp-sh-handle-make-symbolic-link): Flush TARGET file properties.
(tramp-sh-handle-file-truename): Use `tramp-readlink-file-truename'
(tramp-sh-handle-file-exists-p)
(tramp-sh-handle-file-executable-p)
(tramp-sh-handle-file-readable-p)
(tramp-sh-handle-file-directory-p)
(tramp-sh-handle-file-writable-p): Adapt check of file properties.
(tramp-sh-handle-file-attributes): Simplify.
(tramp-do-file-attributes-with-ls): Remove ID-FORMAT.  Combine two
remote commands.  Compute both versions of uid and gid together.
(tramp-do-file-attributes-with-perl)
(tramp-do-directory-files-and-attributes-with-perl):
Remove ID-FORMAT.
(tramp-do-file-attributes-with-stat): Remove ID-FORMAT.  Use
`tramp-stat-file-attributes'.
(tramp-sh-handle-directory-files-and-attributes):
Use `tramp-skeleton-directory-files-and-attributes'.
(tramp-do-directory-files-and-attributes-with-stat):
Remove ID-FORMAT.  Use `tramp-stat-directory-files-and-attributes'.
(tramp-sh-handle-copy-directory): Use `tramp-skeleton-copy-directory'.
(tramp-do-copy-or-rename-file): Use `tramp-barf-if-file-missing'.
(tramp-sh-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
(tramp-sh-handle-write-region): Combine two remote commands.
(tramp-sh-gio-monitor-process-filter): Simplify `cond' call.
(tramp-expand-script): Extend for ls, readling and stat.
(tramp-open-connection-setup-interactive-shell): Do not set
`tramp-end-of-output'.
(tramp-open-connection-setup-interactive-shell): Do not send
prompt formatting command, it's superfluous.
(tramp-send-command-and-check): Rearrange in order to accept also
heredoc scripts.
(tramp-convert-file-attributes): Move function to tramp.el.
(tramp-get-remote-id): Set connection property.
(tramp-get-remote-uid-with-id): Use it.
(tramp-get-remote-python): Don't check for python2 anymore.

* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Use `tramp-handle-directory-files'.
(tramp-smb-handle-copy-directory): Use `tramp-skeleton-copy-directory'.
(tramp-smb-handle-directory-files): Remove.
(tramp-smb-handle-file-attributes): Use `tramp-convert-file-attributes'.
(tramp-smb-do-file-attributes-with-stat): Remove ID-FORMAT.
(tramp-smb-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.
(tramp-sudoedit-file-attributes): New defconst.
(tramp-sudoedit-handle-file-attributes): Simplify code.

* lisp/net/tramp.el (tramp-setup-debug-buffer): Set debug buffer
as not modified.
(tramp-barf-if-file-missing, tramp-skeleton-copy-directory)
(tramp-skeleton-directory-files)
(tramp-skeleton-directory-files-and-attributes)
(tramp-skeleton-file-local-copy): New macros.
(tramp-handle-copy-directory): Use `tramp-skeleton-copy-directory'.
(tramp-handle-directory-files): Use `tramp-skeleton-directory-files'.
(tramp-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
(tramp-handle-insert-file-contents): Use `tramp-barf-if-file-missing'.
(tramp-get-process-attributes, tramp-action-out-of-band):
Simplify `cond' call.
(tramp-check-cached-permissions): Simplify.
(tramp-make-tramp-temp-file): Reimplement.

* test/lisp/net/tramp-archive-tests.el (tramp-copy-size-limit):
Don't set.

* test/lisp/net/tramp-tests.el (tramp--test-enabled):
Remove superfluous test files.
(tramp-test21-file-links): Protect file name deletion.
2022-07-24 16:02:10 +02:00
..
ange-ftp.el ; Normalize some "Author" headers 2022-07-20 22:38:01 +02:00
browse-url.el Rename new option to browse-url-default-scheme 2022-07-10 18:45:50 +02:00
dbus.el Use take where clearly safe to do so (bug#56521) 2022-07-18 12:49:29 +02:00
dictionary-connection.el
dictionary.el Make dictionary-help obsolete in favor of describe-mode 2022-07-21 09:23:20 +02:00
dig.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
dns.el
eudc-bob.el Remove some XEmacs compat code from eudc-bob.el 2022-05-13 23:17:16 +02:00
eudc-capf.el ; Fix typos: prefer American spelling 2022-07-14 12:13:31 +02:00
eudc-export.el
eudc-hotlist.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
eudc-vars.el ; Fix punctuation in recently changed EUDC documentation 2022-07-19 16:42:43 +03:00
eudc.el ; Fix typos: prefer American spelling 2022-07-14 12:13:31 +02:00
eudcb-bbdb.el
eudcb-ldap.el
eudcb-mab.el
eudcb-macos-contacts.el ; Fix punctuation in recently changed EUDC documentation 2022-07-19 16:42:43 +03:00
eww.el * lisp/net/eww.el (eww): Improve docstring. 2022-07-09 17:46:59 +02:00
gnutls.el
goto-addr.el
hmac-def.el
hmac-md5.el
imap.el Drop obsolete rsh/rlogin from two user options 2022-07-12 16:56:36 +02:00
ldap.el Make some defcustom types more restrictive 2022-07-05 18:33:29 +02:00
mailcap.el Fix mailcap-user-mime-data doc string 2022-07-15 11:50:36 +02:00
mairix.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
net-utils.el Avoid obsolete initial-input argument in net-utils.el 2022-07-08 10:26:35 +02:00
netrc.el
network-stream.el
newst-backend.el Drop support for the dead third-party w3 package 2022-07-09 17:27:49 +02:00
newst-plainview.el Drop support for the dead third-party w3 package 2022-07-09 17:27:49 +02:00
newst-reader.el Drop support for the dead third-party w3 package 2022-07-09 17:27:49 +02:00
newst-ticker.el
newst-treeview.el Drop support for the dead third-party w3 package 2022-07-09 17:27:49 +02:00
newsticker.el
nsm.el
ntlm.el
pop3.el Make some defcustom types more restrictive 2022-07-05 18:33:29 +02:00
puny.el
quickurl.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
rcirc.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
rfc2104.el
sasl-cram.el
sasl-digest.el
sasl-ntlm.el
sasl-scram-rfc.el
sasl-scram-sha256.el
sasl.el
secrets.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
shr-color.el
shr.el Don't bug out in src when there's no srcset 2022-07-23 07:46:52 +02:00
sieve-manage.el Make some defcustom types more restrictive 2022-07-05 18:33:29 +02:00
sieve-mode.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
sieve.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
snmp-mode.el Prefer defvar-keymap in net/*.el 2022-07-09 15:34:04 +02:00
soap-client.el
soap-inspect.el
socks.el Remove some useless eval-when-compile 2022-07-04 14:56:11 +02:00
telnet.el Make the rsh command obsolete 2022-07-13 12:48:20 +02:00
tramp-adb.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-archive.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-cache.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-cmds.el Tramp code cleanup 2022-07-03 18:23:55 +02:00
tramp-compat.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-crypt.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-ftp.el Tramp code cleanup 2022-07-03 18:23:55 +02:00
tramp-fuse.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-gvfs.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-integration.el Tramp code cleanup 2022-07-03 18:23:55 +02:00
tramp-rclone.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-sh.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-smb.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-sshfs.el Tramp code cleanup 2022-07-03 18:23:55 +02:00
tramp-sudoedit.el Refactor Tramp 2022-07-24 16:02:10 +02:00
tramp-uu.el
tramp.el Refactor Tramp 2022-07-24 16:02:10 +02:00
trampver.el Adapt Tramp version integrated in Emacs 28.2 2022-07-13 13:38:11 +02:00
webjump.el New user option 'webjump-use-internal-browser' 2022-07-13 12:36:08 +08:00
zeroconf.el