Function: url-wait-for-string
url-wait-for-string is a byte-compiled function defined in
url-gw.el.gz.
Signature
(url-wait-for-string REGEXP PROC)
Documentation
Wait until string matching REGEXP arrives in process PROC's buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-gw.el.gz
;; Stolen from red gnus nntp.el
(defun url-wait-for-string (regexp proc)
"Wait until string matching REGEXP arrives in process PROC's buffer."
(let ((buf (current-buffer)))
(goto-char (point-min))
(while (not (re-search-forward regexp nil t))
(accept-process-output proc)
(set-buffer buf)
(goto-char (point-min)))))