changeset 82277:77e1a2e7ce75

*** empty log message ***
author Michael Albinus <michael.albinus@gmx.de>
date Sun, 05 Aug 2007 12:46:33 +0000
parents d5f5a6607c96
children e2fa2bd67693
files lisp/files.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Sun Aug 05 10:34:43 2007 +0000
+++ b/lisp/files.el	Sun Aug 05 12:46:33 2007 +0000
@@ -2314,7 +2314,7 @@
 		(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))