From b52e05e242d61adfd6085eb127774b122c1a67a3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 21 Dec 2001 23:57:20 +0000 Subject: [PATCH] (ange-ftp-file-modtime): Use save-match-data. --- lisp/net/ange-ftp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 9faa3a241b1..79f18afd2a8 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el @@ -3454,7 +3454,7 @@ Value is (0 0) if the modification time cannot be determined." ;; Bob@rattlesnake.com reports that is returns something different ;; for at least one FTP server. So, let's use the response only ;; if it matches the Internet draft. - (when (string-match "^213 [0-9]\\{14\\}$" line) + (when (save-match-data (string-match "^213 [0-9]\\{14\\}$" line)) (setq modtime (encode-time (string-to-number (substring line 16 18)) -- 2.39.5