emacs-diffs
[Top][All Lists]
Advanced

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

master 3bd8a8bb91: Don't use `string-replace` in soap-client (bug#53744)


From: Mattias Engdegård
Subject: master 3bd8a8bb91: Don't use `string-replace` in soap-client (bug#53744)
Date: Thu, 3 Feb 2022 06:29:56 -0500 (EST)

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

    Don't use `string-replace` in soap-client (bug#53744)
    
    * lisp/net/soap-client.el (soap-decode-xs-complex-type):
    Cease using `string-replace` since it requires Emacs 28.
---
 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 718cff829c..274e3b29e1 100644
--- a/lisp/net/soap-client.el
+++ b/lisp/net/soap-client.el
@@ -659,7 +659,7 @@ representing leap seconds."
             (if second
                 (if second-fraction
                     (let* ((second-fraction-significand
-                            (string-replace "." "" second-fraction))
+                            (replace-regexp-in-string "\\." "" 
second-fraction))
                            (hertz
                             (expt 10 (length second-fraction-significand)))
                            (ticks (+ (* hertz (string-to-number second))



reply via email to

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