* net/tramp.el (tramp-handle-file-remote-p): Return a string as

remote identification.
This commit is contained in:
Michael Albinus
2007-08-05 12:43:06 +00:00
parent 212b726841
commit 6435918d3d
3 changed files with 5 additions and 2 deletions

View File

@@ -3,6 +3,9 @@
* files.el (set-auto-mode): Handle also remote files wrt
`auto-mode-alist'.
* net/tramp.el (tramp-handle-file-remote-p): Return a string as
remote identification.
2007-08-04 Glenn Morris <rgm@gnu.org>
* autorevert.el (auto-revert-tail-mode): auto-revert-tail-pos is

View File

@@ -2260,7 +2260,7 @@ we don't actually set it to the same mode the buffer already has."
(unless done
(if buffer-file-name
(let ((name buffer-file-name)
(remote-id (file-remote-p buffer-file-name)))
(remote-id (regexp-quote (file-remote-p buffer-file-name))))
;; Remove remote file name identification.
(when (and (stringp remote-id)
(string-match remote-id name))

View File

@@ -3872,7 +3872,7 @@ This will break if COMMAND prints a newline, followed by the value of
"Like `file-remote-p' for tramp files."
(when (tramp-tramp-file-p filename)
(with-parsed-tramp-file-name filename nil
(vector multi-method method user host ""))))
(tramp-make-tramp-file-name multi-method method user host ""))))
(defun tramp-handle-insert-file-contents
(filename &optional visit beg end replace)