From: Michael Albinus Date: Thu, 3 Feb 2022 14:30:39 +0000 (+0100) Subject: Revert an erroneous change in tramp-cache.el X-Git-Tag: emacs-28.0.92~64 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0591aa6cd3b079028c05b82d3328a0eba1a11f1d;p=emacs.git 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 . --- 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)))))