2019-02-24 11:15:49 +01:00
|
|
|
|
;;; tramp-integration.el --- Tramp integration into other packages -*- lexical-binding:t -*-
|
|
|
|
|
|
2022-01-01 02:45:51 -05:00
|
|
|
|
;; Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
2019-02-24 11:15:49 +01:00
|
|
|
|
|
|
|
|
|
;; Author: Michael Albinus <michael.albinus@gmx.de>
|
|
|
|
|
;; Keywords: comm, processes
|
|
|
|
|
;; Package: tramp
|
|
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
|
|
;; This assembles all integration of Tramp with other packages.
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
2019-03-09 16:44:24 +01:00
|
|
|
|
(require 'tramp-compat)
|
|
|
|
|
|
2019-02-24 11:15:49 +01:00
|
|
|
|
;; Pacify byte-compiler.
|
|
|
|
|
(require 'cl-lib)
|
2019-12-06 19:28:01 +01:00
|
|
|
|
(declare-function info-lookup->cache "info-look")
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(declare-function info-lookup->mode-cache "info-look")
|
2019-12-06 19:28:01 +01:00
|
|
|
|
(declare-function info-lookup->mode-value "info-look")
|
|
|
|
|
(declare-function info-lookup->other-modes "info-look")
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(declare-function info-lookup->topic-cache "info-look")
|
2019-12-06 19:28:01 +01:00
|
|
|
|
(declare-function info-lookup->topic-value "info-look")
|
|
|
|
|
(declare-function info-lookup-maybe-add-help "info-look")
|
2019-05-18 16:04:02 +02:00
|
|
|
|
(declare-function recentf-cleanup "recentf")
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(declare-function tramp-dissect-file-name "tramp")
|
|
|
|
|
(declare-function tramp-file-name-equal-p "tramp")
|
|
|
|
|
(declare-function tramp-tramp-file-p "tramp")
|
2021-05-22 17:51:07 +02:00
|
|
|
|
(declare-function tramp-rename-files "tramp-cmds")
|
|
|
|
|
(declare-function tramp-rename-these-files "tramp-cmds")
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(defvar eshell-path-env)
|
2019-11-20 13:45:30 +01:00
|
|
|
|
(defvar ido-read-file-name-non-ido)
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(defvar info-lookup-alist)
|
2019-11-20 13:45:30 +01:00
|
|
|
|
(defvar ivy-completing-read-handlers-alist)
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(defvar recentf-exclude)
|
|
|
|
|
(defvar tramp-current-connection)
|
|
|
|
|
(defvar tramp-postfix-host-format)
|
2021-03-25 12:02:57 +01:00
|
|
|
|
(defvar tramp-use-ssh-controlmaster-options)
|
2019-02-24 11:15:49 +01:00
|
|
|
|
|
|
|
|
|
;;; Fontification of `read-file-name':
|
|
|
|
|
|
|
|
|
|
(defvar tramp-rfn-eshadow-overlay)
|
|
|
|
|
(make-variable-buffer-local 'tramp-rfn-eshadow-overlay)
|
|
|
|
|
|
|
|
|
|
(defun tramp-rfn-eshadow-setup-minibuffer ()
|
|
|
|
|
"Set up a minibuffer for `file-name-shadow-mode'.
|
|
|
|
|
Adds another overlay hiding filename parts according to Tramp's
|
|
|
|
|
special handling of `substitute-in-file-name'."
|
|
|
|
|
(when minibuffer-completing-file-name
|
|
|
|
|
(setq tramp-rfn-eshadow-overlay
|
|
|
|
|
(make-overlay (minibuffer-prompt-end) (minibuffer-prompt-end)))
|
|
|
|
|
;; Copy rfn-eshadow-overlay properties.
|
|
|
|
|
(let ((props (overlay-properties rfn-eshadow-overlay)))
|
|
|
|
|
(while props
|
|
|
|
|
;; The `field' property prevents correct minibuffer
|
|
|
|
|
;; completion; we exclude it.
|
|
|
|
|
(if (not (eq (car props) 'field))
|
|
|
|
|
(overlay-put tramp-rfn-eshadow-overlay (pop props) (pop props))
|
|
|
|
|
(pop props) (pop props))))))
|
|
|
|
|
|
|
|
|
|
(add-hook 'rfn-eshadow-setup-minibuffer-hook
|
2019-02-28 10:33:05 +01:00
|
|
|
|
#'tramp-rfn-eshadow-setup-minibuffer)
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(add-hook 'tramp-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(remove-hook 'rfn-eshadow-setup-minibuffer-hook
|
2019-02-28 10:33:05 +01:00
|
|
|
|
#'tramp-rfn-eshadow-setup-minibuffer)))
|
2019-02-24 11:15:49 +01:00
|
|
|
|
|
|
|
|
|
(defun tramp-rfn-eshadow-update-overlay-regexp ()
|
Adapt Tramp docstrings according to checkdoc
* lisp/net/tramp.el (tramp-backup-directory-alist)
(tramp-echoed-echo-mark-regexp, tramp-syntax-values)
(tramp-lookup-syntax, tramp-build-prefix-format)
(tramp-build-prefix-regexp, tramp-build-method-regexp)
(tramp-build-postfix-method-format)
(tramp-build-postfix-method-regexp)
(tramp-build-prefix-ipv6-format, tramp-build-prefix-ipv6-regexp)
(tramp-build-postfix-ipv6-format)
(tramp-build-postfix-ipv6-regexp)
(tramp-build-postfix-host-format)
(tramp-build-postfix-host-regexp, tramp-unknown-id-string)
(tramp-unknown-id-integer, tramp-build-file-name-regexp)
(tramp-build-completion-file-name-regexp, tramp-chunksize)
(tramp-find-method, tramp-find-user, tramp-find-host)
(tramp-dissect-file-name, tramp-get-buffer)
(tramp-get-connection-buffer, tramp-debug-message, tramp-error)
(with-tramp-connection-property, tramp-run-real-handler)
(tramp-file-name-for-operation, tramp-file-name-handler)
(tramp-completion-file-name-handler)
(tramp-completion-handle-file-name-completion)
(tramp-completion-dissect-file-name)
(tramp-completion-dissect-file-name1)
(tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory)
(tramp-handle-file-name-nondirectory, tramp-mode-string-to-int)
(tramp-file-mode-from-int):
* lisp/net/tramp-adb.el (tramp-adb-file-name-p):
* lisp/net/tramp-archive.el (tramp-archive-run-real-handler)
(tramp-archive-file-name-handler)
(tramp-archive-dissect-file-name)
(with-parsed-tramp-archive-file-name)
(tramp-archive-gvfs-file-name, tramp-archive-handle-access-file):
* lisp/net/tramp-cmds.el (tramp-list-remote-buffers):
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-compat-funcall, tramp-compat-tramp-file-name-slots):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-p)
(tramp-gvfs-file-name-handler)
(tramp-gvfs-stringify-dbus-message)
(tramp-gvfs-monitor-process-filter)
(tramp-gvfs-handler-mounted-unmounted):
* lisp/net/tramp-integration.el
(tramp-rfn-eshadow-update-overlay-regexp):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-p)
(tramp-rclone-file-name-handler, tramp-rclone-send-command):
* lisp/net/tramp-sh.el (tramp-sh--quoting-style-options)
(tramp-sh-gio-monitor-process-filter)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-find-executable)
(tramp-set-remote-path, tramp-open-shell, tramp-find-shell)
(tramp-send-command-and-check, tramp-shell-case-fold)
(tramp-get-remote-path):
* lisp/net/tramp-smb.el (tramp-smb-file-name-p)
(tramp-smb-file-name-handler)
(tramp-smb-do-file-attributes-with-stat)
(tramp-smb-handle-substitute-in-file-name)
(tramp-smb-get-stat-capability, tramp-smb-shell-quote-argument):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-p)
(tramp-sudoedit-file-name-handler)
(tramp-sudoedit-send-command-string):
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test-all):
* test/lisp/net/tramp-tests.el (tramp--test-gvfs-p)
(tramp--test-with-proper-process-name-and-buffer)
(tramp-test-all): Adapt docstrings according to `checkdoc'.
2019-11-13 13:10:58 +01:00
|
|
|
|
"An overlay covering the shadowed part of the filename."
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(format "[^%s/~]*\\(/\\|~\\)" tramp-postfix-host-format))
|
|
|
|
|
|
|
|
|
|
(defun tramp-rfn-eshadow-update-overlay ()
|
|
|
|
|
"Update `rfn-eshadow-overlay' to cover shadowed part of minibuffer input.
|
|
|
|
|
This is intended to be used as a minibuffer `post-command-hook' for
|
|
|
|
|
`file-name-shadow-mode'; the minibuffer should have already
|
|
|
|
|
been set up by `rfn-eshadow-setup-minibuffer'."
|
|
|
|
|
;; In remote files name, there is a shadowing just for the local part.
|
|
|
|
|
(ignore-errors
|
|
|
|
|
(let ((end (or (overlay-end rfn-eshadow-overlay)
|
|
|
|
|
(minibuffer-prompt-end)))
|
|
|
|
|
;; We do not want to send any remote command.
|
|
|
|
|
(non-essential t))
|
|
|
|
|
(when (tramp-tramp-file-p (buffer-substring end (point-max)))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region
|
|
|
|
|
(1+ (or (string-match-p
|
|
|
|
|
(tramp-rfn-eshadow-update-overlay-regexp)
|
|
|
|
|
(buffer-string) end)
|
|
|
|
|
end))
|
|
|
|
|
(point-max))
|
|
|
|
|
(let ((rfn-eshadow-overlay tramp-rfn-eshadow-overlay)
|
|
|
|
|
(rfn-eshadow-update-overlay-hook nil)
|
|
|
|
|
file-name-handler-alist)
|
|
|
|
|
(move-overlay rfn-eshadow-overlay (point-max) (point-max))
|
|
|
|
|
(rfn-eshadow-update-overlay))))))))
|
|
|
|
|
|
|
|
|
|
(add-hook 'rfn-eshadow-update-overlay-hook
|
2019-02-28 10:33:05 +01:00
|
|
|
|
#'tramp-rfn-eshadow-update-overlay)
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(add-hook 'tramp-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(remove-hook 'rfn-eshadow-update-overlay-hook
|
2019-02-28 10:33:05 +01:00
|
|
|
|
#'tramp-rfn-eshadow-update-overlay)))
|
2019-02-24 11:15:49 +01:00
|
|
|
|
|
|
|
|
|
;;; Integration of eshell.el:
|
|
|
|
|
|
|
|
|
|
;; eshell.el keeps the path in `eshell-path-env'. We must change it
|
|
|
|
|
;; when `default-directory' points to another host.
|
|
|
|
|
(defun tramp-eshell-directory-change ()
|
|
|
|
|
"Set `eshell-path-env' to $PATH of the host related to `default-directory'."
|
|
|
|
|
;; Remove last element of `(exec-path)', which is `exec-directory'.
|
|
|
|
|
;; Use `path-separator' as it does eshell.
|
|
|
|
|
(setq eshell-path-env
|
|
|
|
|
(mapconcat
|
2020-11-10 10:02:15 +01:00
|
|
|
|
#'identity (butlast (tramp-compat-exec-path)) path-separator)))
|
2019-02-24 11:15:49 +01:00
|
|
|
|
|
2019-06-28 16:32:12 +02:00
|
|
|
|
(with-eval-after-load 'esh-util
|
2019-06-29 12:18:59 +02:00
|
|
|
|
(add-hook 'eshell-mode-hook
|
|
|
|
|
#'tramp-eshell-directory-change)
|
|
|
|
|
(add-hook 'eshell-directory-change-hook
|
|
|
|
|
#'tramp-eshell-directory-change)
|
|
|
|
|
(add-hook 'tramp-integration-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(remove-hook 'eshell-mode-hook
|
|
|
|
|
#'tramp-eshell-directory-change)
|
|
|
|
|
(remove-hook 'eshell-directory-change-hook
|
|
|
|
|
#'tramp-eshell-directory-change))))
|
2019-02-24 11:15:49 +01:00
|
|
|
|
|
|
|
|
|
;;; Integration of recentf.el:
|
|
|
|
|
|
|
|
|
|
(defun tramp-recentf-exclude-predicate (name)
|
|
|
|
|
"Predicate to exclude a remote file name from recentf.
|
|
|
|
|
NAME must be equal to `tramp-current-connection'."
|
|
|
|
|
(when (file-remote-p name)
|
|
|
|
|
(tramp-file-name-equal-p
|
|
|
|
|
(tramp-dissect-file-name name) (car tramp-current-connection))))
|
|
|
|
|
|
|
|
|
|
(defun tramp-recentf-cleanup (vec)
|
|
|
|
|
"Remove all file names related to VEC from recentf."
|
|
|
|
|
(when (bound-and-true-p recentf-list)
|
|
|
|
|
(let ((tramp-current-connection `(,vec))
|
|
|
|
|
(recentf-exclude '(tramp-recentf-exclude-predicate)))
|
|
|
|
|
(recentf-cleanup))))
|
|
|
|
|
|
2019-02-25 11:59:52 +01:00
|
|
|
|
(defun tramp-recentf-cleanup-all ()
|
|
|
|
|
"Remove all remote file names from recentf."
|
|
|
|
|
(when (bound-and-true-p recentf-list)
|
|
|
|
|
(let ((recentf-exclude '(file-remote-p)))
|
|
|
|
|
(recentf-cleanup))))
|
|
|
|
|
|
2019-06-28 16:32:12 +02:00
|
|
|
|
(with-eval-after-load 'recentf
|
2019-06-29 12:18:59 +02:00
|
|
|
|
(add-hook 'tramp-cleanup-connection-hook
|
|
|
|
|
#'tramp-recentf-cleanup)
|
|
|
|
|
(add-hook 'tramp-cleanup-all-connections-hook
|
|
|
|
|
#'tramp-recentf-cleanup-all)
|
|
|
|
|
(add-hook 'tramp-integration-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(remove-hook 'tramp-cleanup-connection-hook
|
|
|
|
|
#'tramp-recentf-cleanup)
|
|
|
|
|
(remove-hook 'tramp-cleanup-all-connections-hook
|
|
|
|
|
#'tramp-recentf-cleanup-all))))
|
2019-02-25 11:59:52 +01:00
|
|
|
|
|
2019-11-20 13:45:30 +01:00
|
|
|
|
;;; Integration of ido.el:
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'ido
|
2021-05-22 17:51:07 +02:00
|
|
|
|
(add-to-list 'ido-read-file-name-non-ido #'tramp-rename-files)
|
|
|
|
|
(add-to-list 'ido-read-file-name-non-ido #'tramp-rename-these-files)
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(add-hook 'tramp-integration-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(setq ido-read-file-name-non-ido
|
2021-05-22 17:51:07 +02:00
|
|
|
|
(delq #'tramp-rename-these-files ido-read-file-name-non-ido)
|
2019-12-07 13:40:04 +01:00
|
|
|
|
ido-read-file-name-non-ido
|
2021-05-22 17:51:07 +02:00
|
|
|
|
(delq #'tramp-rename-files ido-read-file-name-non-ido)))))
|
2019-11-20 13:45:30 +01:00
|
|
|
|
|
|
|
|
|
;;; Integration of ivy.el:
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'ivy
|
|
|
|
|
(add-to-list 'ivy-completing-read-handlers-alist
|
|
|
|
|
'(tramp-rename-files . completing-read-default))
|
|
|
|
|
(add-to-list 'ivy-completing-read-handlers-alist
|
2021-05-22 17:51:07 +02:00
|
|
|
|
'(tramp-rename-these-files . completing-read-default))
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(add-hook
|
|
|
|
|
'tramp-integration-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(setq ivy-completing-read-handlers-alist
|
|
|
|
|
(delete
|
2021-05-22 17:51:07 +02:00
|
|
|
|
(assq #'tramp-rename-these-files ivy-completing-read-handlers-alist)
|
2019-12-07 13:40:04 +01:00
|
|
|
|
ivy-completing-read-handlers-alist)
|
|
|
|
|
ivy-completing-read-handlers-alist
|
|
|
|
|
(delete
|
2021-05-22 17:51:07 +02:00
|
|
|
|
(assq #'tramp-rename-files ivy-completing-read-handlers-alist)
|
2019-12-07 13:40:04 +01:00
|
|
|
|
ivy-completing-read-handlers-alist)))))
|
2019-11-20 13:45:30 +01:00
|
|
|
|
|
2019-12-06 19:28:01 +01:00
|
|
|
|
;;; Integration of info-look.el:
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'info-look
|
|
|
|
|
;; Create a pseudo mode `tramp-info-lookup-mode' for Tramp symbol lookup.
|
|
|
|
|
(info-lookup-maybe-add-help
|
|
|
|
|
:mode 'tramp-info-lookup-mode :topic 'symbol
|
|
|
|
|
:regexp "[^][()`'‘’,\" \t\n]+"
|
|
|
|
|
:doc-spec '(("(tramp)Function Index" nil "^ -+ .*: " "\\( \\|$\\)")
|
|
|
|
|
("(tramp)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)")))
|
|
|
|
|
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(add-hook
|
|
|
|
|
'tramp-integration-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(setcdr (assq 'symbol info-lookup-alist)
|
|
|
|
|
(delete (info-lookup->mode-value 'symbol 'tramp-info-lookup-mode)
|
|
|
|
|
(info-lookup->topic-value 'symbol)))
|
|
|
|
|
(setcdr (info-lookup->cache 'symbol)
|
|
|
|
|
(delete (info-lookup->mode-cache 'symbol 'tramp-info-lookup-mode)
|
|
|
|
|
(info-lookup->topic-cache 'symbol)))))
|
|
|
|
|
|
2021-03-08 10:11:22 -05:00
|
|
|
|
(dolist (mode (mapcar #'car (info-lookup->topic-value 'symbol)))
|
2019-12-07 13:40:04 +01:00
|
|
|
|
;; Add `tramp-info-lookup-mode' to `other-modes' for either
|
|
|
|
|
;; `emacs-lisp-mode' itself, or to modes which use
|
|
|
|
|
;; `emacs-lisp-mode' as `other-modes'. Reset `info-lookup-cache'.
|
2019-12-06 19:28:01 +01:00
|
|
|
|
(when (and (or (equal mode 'emacs-lisp-mode)
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(memq
|
2019-12-06 19:28:01 +01:00
|
|
|
|
'emacs-lisp-mode (info-lookup->other-modes 'symbol mode)))
|
2019-12-07 13:40:04 +01:00
|
|
|
|
(not (memq 'tramp-info-lookup-mode
|
|
|
|
|
(info-lookup->other-modes 'symbol mode))))
|
|
|
|
|
(setcdr (info-lookup->mode-value 'symbol mode)
|
|
|
|
|
(append (butlast (cdr (info-lookup->mode-value 'symbol mode)))
|
|
|
|
|
`((tramp-info-lookup-mode
|
|
|
|
|
. ,(info-lookup->other-modes 'symbol mode)))))
|
|
|
|
|
(setcdr (info-lookup->cache 'symbol)
|
|
|
|
|
(delete (info-lookup->mode-cache 'symbol mode)
|
|
|
|
|
(info-lookup->topic-cache 'symbol)))
|
|
|
|
|
|
|
|
|
|
(add-hook
|
|
|
|
|
'tramp-integration-unload-hook
|
|
|
|
|
`(lambda ()
|
|
|
|
|
(setcdr (info-lookup->mode-value 'symbol ',mode)
|
|
|
|
|
(append (butlast
|
|
|
|
|
(cdr (info-lookup->mode-value 'symbol ',mode)))
|
|
|
|
|
(list
|
|
|
|
|
(delq 'tramp-info-lookup-mode
|
|
|
|
|
(info-lookup->other-modes 'symbol ',mode)))))
|
|
|
|
|
(setcdr (info-lookup->cache 'symbol)
|
|
|
|
|
(delete (info-lookup->mode-cache 'symbol ',mode)
|
|
|
|
|
(info-lookup->topic-cache 'symbol))))))))
|
2019-12-06 19:28:01 +01:00
|
|
|
|
|
2021-03-16 18:39:51 +01:00
|
|
|
|
;;; Integration of compile.el:
|
|
|
|
|
|
|
|
|
|
;; Compilation processes use `accept-process-output' such a way that
|
|
|
|
|
;; Tramp's parallel `accept-process-output' blocks. See last part of
|
|
|
|
|
;; Bug#45518. So we don't use ssh ControlMaster options.
|
|
|
|
|
(defun tramp-compile-disable-ssh-controlmaster-options ()
|
|
|
|
|
"Don't allow ssh ControlMaster while compiling."
|
|
|
|
|
(setq-local tramp-use-ssh-controlmaster-options nil))
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'compile
|
|
|
|
|
(add-hook 'compilation-mode-hook
|
|
|
|
|
#'tramp-compile-disable-ssh-controlmaster-options)
|
|
|
|
|
(add-hook 'tramp-integration-unload-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(remove-hook 'compilation-start-hook
|
|
|
|
|
#'tramp-compile-disable-ssh-controlmaster-options))))
|
|
|
|
|
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
;;; Default connection-local variables for Tramp.
|
2020-11-21 15:28:52 +01:00
|
|
|
|
|
|
|
|
|
(defconst tramp-connection-local-default-system-variables
|
|
|
|
|
'((path-separator . ":")
|
|
|
|
|
(null-device . "/dev/null"))
|
|
|
|
|
"Default connection-local system variables for remote connections.")
|
|
|
|
|
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
(connection-local-set-profile-variables
|
2020-11-21 15:28:52 +01:00
|
|
|
|
'tramp-connection-local-default-system-profile
|
|
|
|
|
tramp-connection-local-default-system-variables)
|
|
|
|
|
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
(connection-local-set-profiles
|
2021-03-16 18:39:51 +01:00
|
|
|
|
'(:application tramp)
|
2020-11-21 15:28:52 +01:00
|
|
|
|
'tramp-connection-local-default-system-profile)
|
2019-03-09 16:44:24 +01:00
|
|
|
|
|
2020-11-21 15:28:52 +01:00
|
|
|
|
(defconst tramp-connection-local-default-shell-variables
|
2019-06-10 17:48:08 +02:00
|
|
|
|
'((shell-file-name . "/bin/sh")
|
|
|
|
|
(shell-command-switch . "-c"))
|
2020-11-21 15:28:52 +01:00
|
|
|
|
"Default connection-local shell variables for remote connections.")
|
|
|
|
|
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
(connection-local-set-profile-variables
|
2020-11-21 15:28:52 +01:00
|
|
|
|
'tramp-connection-local-default-shell-profile
|
|
|
|
|
tramp-connection-local-default-shell-variables)
|
2019-03-09 16:44:24 +01:00
|
|
|
|
|
2019-06-28 16:32:12 +02:00
|
|
|
|
(with-eval-after-load 'shell
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
(connection-local-set-profiles
|
2021-03-16 18:39:51 +01:00
|
|
|
|
'(:application tramp)
|
2020-11-21 15:28:52 +01:00
|
|
|
|
'tramp-connection-local-default-shell-profile))
|
2019-03-09 16:44:24 +01:00
|
|
|
|
|
2019-02-24 11:15:49 +01:00
|
|
|
|
(add-hook 'tramp-unload-hook
|
|
|
|
|
(lambda () (unload-feature 'tramp-integration 'force)))
|
|
|
|
|
|
|
|
|
|
(provide 'tramp-integration)
|
|
|
|
|
|
|
|
|
|
;;; tramp-integration.el ends here
|