# HG changeset patch # User Michael Albinus # Date 1186317786 0 # Node ID 58cb4546b377aa08213637f8005119f091205da0 # Parent 7ed1b196b926bc50345b32d8da8ffe2fe045bb62 * net/tramp.el (tramp-handle-file-remote-p): Return a string as remote identification. diff -r 7ed1b196b926 -r 58cb4546b377 lisp/ChangeLog --- a/lisp/ChangeLog Sun Aug 05 08:57:24 2007 +0000 +++ b/lisp/ChangeLog Sun Aug 05 12:43:06 2007 +0000 @@ -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 * autorevert.el (auto-revert-tail-mode): auto-revert-tail-pos is diff -r 7ed1b196b926 -r 58cb4546b377 lisp/files.el --- a/lisp/files.el Sun Aug 05 08:57:24 2007 +0000 +++ b/lisp/files.el Sun Aug 05 12:43:06 2007 +0000 @@ -2260,7 +2260,7 @@ (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)) diff -r 7ed1b196b926 -r 58cb4546b377 lisp/net/tramp.el --- a/lisp/net/tramp.el Sun Aug 05 08:57:24 2007 +0000 +++ b/lisp/net/tramp.el Sun Aug 05 12:43:06 2007 +0000 @@ -3872,7 +3872,7 @@ "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)