From: Michael Albinus Date: Sat, 4 Apr 2015 18:34:47 +0000 (+0200) Subject: Quote directory name in tramp-flush-directory-property X-Git-Tag: emacs-25.0.90~2564^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5824dd5b6a67b3de83d281049d3694066e1462a7;p=emacs.git Quote directory name in tramp-flush-directory-property * net/tramp-cache.el (tramp-flush-directory-property): Quote directory name when used in regexp. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cab6abac615..5a7d953a613 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-04-04 Michael Albinus + + * net/tramp-cache.el (tramp-flush-directory-property): Quote directory + name when used in regexp. + 2015-04-04 Alan Mackenzie Fix debbugs#20240 part two (jit-lock error during `comment-dwim'). diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el index 155053c5cdb..ba29ef04429 100644 --- a/lisp/net/tramp-cache.el +++ b/lisp/net/tramp-cache.el @@ -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)))