]> git.eshelyaron.com Git - emacs.git/commitdiff
Quote directory name in tramp-flush-directory-property
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 4 Apr 2015 18:34:47 +0000 (20:34 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 4 Apr 2015 18:34:47 +0000 (20:34 +0200)
* net/tramp-cache.el (tramp-flush-directory-property): Quote directory
name when used in regexp.

lisp/ChangeLog
lisp/net/tramp-cache.el

index cab6abac6158d4f8af3571b884df642aa1ad9f45..5a7d953a613717c24e00a7222b138d75a8d04c34 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-04  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-cache.el (tramp-flush-directory-property): Quote directory
+       name when used in regexp.
+
 2015-04-04  Alan Mackenzie  <acm@muc.de>
 
        Fix debbugs#20240 part two (jit-lock error during `comment-dwim').
index 155053c5cdb51f3af61b4004e796c0dfd7133fc9..ba29ef04429803c54e997702583f8408f41e224b 100644 (file)
@@ -196,7 +196,8 @@ Remove also properties of all files in subdirectories."
     (maphash
      (lambda (key _value)
        (when (and (stringp (tramp-file-name-localname key))
-                 (string-match directory (tramp-file-name-localname key)))
+                 (string-match (regexp-quote directory)
+                               (tramp-file-name-localname key)))
         (remhash key tramp-cache-data)))
      tramp-cache-data)))