Revert Tramp commit from 2017-11-20
* lisp/net/tramp.el (tramp-drop-volume-letter) (tramp-handle-find-backup-file-name): Revert change from 2017-11-20. Emacs' `make-backup-file-name-1' handles this case now.
This commit is contained in:
parent
77cf972592
commit
1b351c8a47
1 changed files with 16 additions and 19 deletions
|
@ -1858,8 +1858,7 @@ letter into the file name. This function removes it."
|
|||
(if (tramp-compat-file-name-quoted-p name)
|
||||
'tramp-compat-file-name-quote 'identity)
|
||||
(let ((name (tramp-compat-file-name-unquote name)))
|
||||
;; A volume letter could occur also in encoded backup file names.
|
||||
(if (string-match "\\(\\`[[:alpha:]]:/\\|/!drive_[[:alpha:]]\\)" name)
|
||||
(if (string-match "\\`[a-zA-Z]:/" name)
|
||||
(replace-match "/" nil t name)
|
||||
name)))))
|
||||
|
||||
|
@ -3226,8 +3225,6 @@ User is always nil."
|
|||
(defun tramp-handle-find-backup-file-name (filename)
|
||||
"Like `find-backup-file-name' for Tramp files."
|
||||
(with-parsed-tramp-file-name filename nil
|
||||
(mapcar
|
||||
'tramp-drop-volume-letter
|
||||
(let ((backup-directory-alist
|
||||
(if tramp-backup-directory-alist
|
||||
(mapcar
|
||||
|
@ -3242,7 +3239,7 @@ User is always nil."
|
|||
(cdr x))))
|
||||
tramp-backup-directory-alist)
|
||||
backup-directory-alist)))
|
||||
(tramp-run-real-handler 'find-backup-file-name (list filename))))))
|
||||
(tramp-run-real-handler 'find-backup-file-name (list filename)))))
|
||||
|
||||
(defun tramp-handle-insert-directory
|
||||
(filename switches &optional wildcard full-directory-p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue