Function: doctor-query
doctor-query is a byte-compiled function defined in doctor.el.gz.
Signature
(doctor-query X)
Documentation
Prompt for a line of input from the minibuffer until a noun or verb is seen.
Put dialogue in buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/play/doctor.el.gz
(defun doctor-query (x)
"Prompt for a line of input from the minibuffer until a noun or verb is seen.
Put dialogue in buffer."
(let (a
(prompt (concat (doctor-make-string x)
" what ? "))
retval)
(while (not retval)
(while (not a)
(insert ?\n
prompt
(read-string prompt)
?\n)
(setq a (doctor-readin)))
(while (and a (not retval))
(cond ((doctor-nounp (car a))
(setq retval (car a)))
((doctor-verbp (car a))
(setq retval (doctor-build
(doctor-build x " ")
(car a))))
((setq a (cdr a))))))
retval))