From: Richard M. Stallman Date: Fri, 21 Dec 2001 23:57:20 +0000 (+0000) Subject: (ange-ftp-file-modtime): Use save-match-data. X-Git-Tag: ttn-vms-21-2-B4~17545 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b52e05e242d61adfd6085eb127774b122c1a67a3;p=emacs.git (ange-ftp-file-modtime): Use save-match-data. --- 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))