diff lisp/files.el @ 78411:58cb4546b377

* net/tramp.el (tramp-handle-file-remote-p): Return a string as remote identification.
author Michael Albinus <michael.albinus@gmx.de>
date Sun, 05 Aug 2007 12:43:06 +0000
parents 7ed1b196b926
children 8a48dd7864d1
line wrap: on
line diff
--- 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))