From 0591aa6cd3b079028c05b82d3328a0eba1a11f1d Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 3 Feb 2022 15:30:39 +0100 Subject: [PATCH] Revert an erroneous change in tramp-cache.el * lisp/net/tramp-cache.el (tramp-get-hash-table): Use `string-match-p' instead of `string-search'. The latter one was introduced by accident. Reported by Kai Tetzlaff . --- lisp/net/tramp-cache.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el index fc8f04f5273..d35f7ffa4e3 100644 --- a/lisp/net/tramp-cache.el +++ b/lisp/net/tramp-cache.el @@ -125,7 +125,7 @@ If KEY is `tramp-cache-undefined', don't create anything, and return nil." (puthash key (make-hash-table :test #'equal) tramp-cache-data))) (when (tramp-file-name-p key) (dolist (elt tramp-connection-properties) - (when (tramp-compat-string-search + (when (string-match-p (or (nth 0 elt) "") (tramp-make-tramp-file-name key 'noloc 'nohop)) (tramp-set-connection-property key (nth 1 elt) (nth 2 elt))))) -- 2.39.2