changeset 78412:8a48dd7864d1

*** empty log message ***
author Michael Albinus <michael.albinus@gmx.de>
date Sun, 05 Aug 2007 12:48:27 +0000
parents 58cb4546b377
children 15aa7ac77da1
files lisp/files.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Sun Aug 05 12:43:06 2007 +0000
+++ b/lisp/files.el	Sun Aug 05 12:48:27 2007 +0000
@@ -2260,10 +2260,10 @@
     (unless done
       (if buffer-file-name
 	  (let ((name buffer-file-name)
-		(remote-id (regexp-quote (file-remote-p buffer-file-name))))
+		(remote-id (file-remote-p buffer-file-name)))
 	    ;; Remove remote file name identification.
 	    (when (and (stringp remote-id)
-		       (string-match remote-id name))
+		       (string-match (regexp-quote remote-id) name))
 	      (setq name (substring name (match-end 0))))
 	    ;; Remove backup-suffixes from file name.
 	    (setq name (file-name-sans-versions name))