[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with query-replace, replace-string
From: |
David Kastrup |
Subject: |
Re: problems with query-replace, replace-string |
Date: |
21 Dec 2001 13:13:03 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
c.i.mooooore@btinternet.com (Chris) writes:
> My fix to the problem is to replace this line of ange-ftp.el (it's
> line 3445, in function 'ange-ftp-file-modtime'):
> (when (string-match "^213 [0-9]\\{14\\}$" line)
> with this:
> (when (string-equal "213 " (substring line 0 4))
>
> Perhaps it's not ideal - it's certainly not such a strict test of the
> returned line, but it works for me. I guess I would rather somehow
> call 'save_search_regs()' before and 'restore_match_data()' after the
> string-match call in ange-ftp, but I don't know whether those 2
> functions are available from Emacs Lisp.
save-match-data is a Lisp macro in `subr'.
(save-match-data &rest BODY)
Execute the BODY forms, restoring the global value of the match data.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de