Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!ucbvax!ALEXANDER.BBN.COM!jr From: jr@ALEXANDER.BBN.COM (John Robinson) Newsgroups: comp.emacs Subject: Re: reading without echo... Message-ID: <8705141406.AA23304@ucbvax.Berkeley.EDU> Date: Thu, 14-May-87 10:07:28 EDT Article-I.D.: ucbvax.8705141406.AA23304 Posted: Thu May 14 10:07:28 1987 Date-Received: Sat, 16-May-87 10:36:52 EDT References: <94@hotlg.ATT> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 20 >> I could not find >> a way to accomplish the read purely in Elisp, so I did it in C. Here's a way in elisp. Generalization ala read-from-minibuffer is left as an exercise for the reader. (defun read-silent (prompt) (message prompt) (let ((chr (read-char)) (ans "")) (while (not (eq chr ?\r)) (message prompt) (setq ans (concat ans (char-to-string chr))) (setq chr (read-char))) ans)) /jr jr@bbn.com or jr@bbnccv.uucp Without life, there wouldn't be chemical companies.