emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 0591aa6cd3: Revert an erroneous change in tramp-cache.el


From: Michael Albinus
Subject: emacs-28 0591aa6cd3: Revert an erroneous change in tramp-cache.el
Date: Thu, 3 Feb 2022 09:30:48 -0500 (EST)

branch: emacs-28
commit 0591aa6cd3b079028c05b82d3328a0eba1a11f1d
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    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 <kai@tetzlaff.eu>.
---
 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 fc8f04f527..d35f7ffa4e 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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]