Merge from origin/emacs-28

ba4daf2214 Adapt arguments of `tramp-make-tramp-file-name'
a34466731b Fix typo in describe-map-tree doc string
This commit is contained in:
Michael Albinus 2021-11-01 12:32:06 +01:00
commit 8b861b07cf
4 changed files with 16 additions and 13 deletions

View file

@ -1250,10 +1250,10 @@ If NOMENU is non-nil, then omit menu-bar commands.
If TRANSL is non-nil, the definitions are actually key
translations so print strings and vectors differently.
If ALWAYS_TITLE is non-nil, print the title even if there are no
If ALWAYS-TITLE is non-nil, print the title even if there are no
maps to look through.
If MENTION_SHADOW is non-nil, then when something is shadowed by
If MENTION-SHADOW is non-nil, then when something is shadowed by
SHADOW, don't omit it; instead, mention it but say it is
shadowed."
(let* ((amaps (accessible-keymaps startmap prefix))

View file

@ -1865,12 +1865,9 @@ Their full names are \"org.gtk.vfs.MountTracker.mounted\" and
host (tramp-file-name-host v)
port (tramp-file-name-port v)))))
(when (member method tramp-gvfs-methods)
(with-parsed-tramp-file-name
;; This must be changed when we throw the old signature
;; away in Emacs 27.1 and higher.
(with-no-warnings
(tramp-make-tramp-file-name method user domain host port ""))
nil
(let ((v (make-tramp-file-name
:method method :user user :domain domain
:host host :port port)))
(tramp-message
v 6 "%s %s"
signal-name (tramp-gvfs-stringify-dbus-message mount-info))

View file

@ -109,6 +109,9 @@ nil means run no commands."
;;;; entry point
;; We use the Tramp internal function `tramp-make-tramp-file-name'.
;; It has changed its signature in Emacs 27.1, supporting still the
;; old calling convention. Let's assume rcompile.el has been removed
;; once Tramp does not support it any longer.
;; Better would be, if there are functions to provide user, host and
;; localname of a remote filename, independent of Tramp's implementation.
;; The function calls are wrapped by `funcall' in order to pacify the byte
@ -167,7 +170,8 @@ See \\[compile]."
(with-current-buffer compilation-last-buffer
(when (fboundp 'tramp-make-tramp-file-name)
(set (make-local-variable 'comint-file-name-prefix)
(tramp-make-tramp-file-name
(funcall
#'tramp-make-tramp-file-name
nil ;; method.
remote-compile-user
remote-compile-host

View file

@ -48,12 +48,14 @@ In case URL is not convertible, nil is returned."
(when (url-password obj)
(password-cache-add
(tramp-make-tramp-file-name
(url-type obj) (url-user obj) nil
(url-host obj) port "")
(make-tramp-file-name
:method (url-type obj) :user (url-user obj)
:host (url-host obj)))
(url-password obj)))
(tramp-make-tramp-file-name
(url-type obj) (url-user obj) nil
(url-host obj) port (url-filename obj)))))
(make-tramp-file-name
:method (url-type obj) :user (url-user obj)
:host (url-host obj) :port port :localname (url-filename obj))))))
(defun url-tramp-convert-tramp-to-url (file)
"Convert FILE, a Tramp file name, to a URL.