Function: nntp-wait-for-string
nntp-wait-for-string is a byte-compiled function defined in
nntp.el.gz.
Signature
(nntp-wait-for-string REGEXP)
Documentation
Wait until string arrives in the buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nntp.el.gz
(defun nntp-wait-for-string (regexp)
"Wait until string arrives in the buffer."
(let ((buf (current-buffer))
proc)
(goto-char (point-min))
(while (and (setq proc (get-buffer-process buf))
(memq (process-status proc) '(open run))
(not (re-search-forward regexp nil t)))
(accept-process-output proc 0.1)
(set-buffer buf)
(goto-char (point-min)))))