From: Richard M. Stallman Date: Fri, 21 Dec 2001 23:58:23 +0000 (+0000) Subject: (ange-ftp-file-modtime): Use save-match-data. X-Git-Tag: emacs-21.2~220 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=03f0813fc1bbd0aa72d79181db65dc50e5d56e8b;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 68886e80cb1..a6e09464a2f 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el @@ -3442,7 +3442,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))