emacs-diffs
[Top][All Lists]
Advanced

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

master 1b0342628e: Don't use `string-search` in soap-client (bug#53744)


From: Mattias Engdegård
Subject: master 1b0342628e: Don't use `string-search` in soap-client (bug#53744)
Date: Thu, 3 Feb 2022 06:21:48 -0500 (EST)

branch: master
commit 1b0342628e565ff6fbb3ad1e374a2203d9d4a8ae
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Don't use `string-search` in soap-client (bug#53744)
    
    * lisp/net/soap-client.el (soap-decode-xs-complex-type):
    Since soap-client is a core ELPA package and may be used with
    Emacs versions older than 28, it cannot use `string-search`;
    revert to `string-match`.
---
 lisp/net/soap-client.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el
index d2092633d8..718cff829c 100644
--- a/lisp/net/soap-client.el
+++ b/lisp/net/soap-client.el
@@ -1937,7 +1937,7 @@ This is a specialization of `soap-decode-type' for
                   (e-name (soap-xs-element-name element))
                   ;; Heuristic: guess if we need to decode using local
                   ;; namespaces.
-                  (use-fq-names (string-search ":" (symbol-name (car node))))
+                  (use-fq-names (string-match ":" (symbol-name (car node))))
                   (children (if e-name
                                 (if use-fq-names
                                     ;; Find relevant children



reply via email to

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