From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Haensel Newsgroups: gmane.emacs.help Subject: Input from buffer instead of minibuffer Date: Sun, 30 Sep 2012 13:46:03 -0700 (PDT) Message-ID: <58f60ac7-2407-411c-92ba-13a4550f682a@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1349038213 11203 80.91.229.3 (30 Sep 2012 20:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 20:50:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 30 22:50:19 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TIQSw-0000cr-7v for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Sep 2012 22:50:18 +0200 Original-Received: from localhost ([::1]:38487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIQSq-0002oP-Jl for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Sep 2012 16:50:12 -0400 Original-Received: by 10.66.84.168 with SMTP id a8mr3980274paz.25.1349037963898; Sun, 30 Sep 2012 13:46:03 -0700 (PDT) Original-Received: by 10.68.211.6 with SMTP id my6mr3512052pbc.15.1349037963884; Sun, 30 Sep 2012 13:46:03 -0700 (PDT) Original-Path: usenet.stanford.edu!kq19no5917857pbb.0!news-out.google.com!g9ni8152pbh.1!nntp.google.com!kq19no5917848pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.10.100.71; posting-account=JA_7oQoAAAACEyPIW2C_Uo5x4pRlaZxj Original-NNTP-Posting-Host: 75.10.100.71 User-Agent: G2/1.0 Injection-Date: Sun, 30 Sep 2012 20:46:03 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:194674 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87010 Archived-At: Hello everyone - I'm writing a quiz program in Emacs Lisp. The program creates a new frame and buffer for the quiz questions. The quiz then runs something like this: (insert "Please identify: [quiz item]") (setq response (read-from-minibuffer "Please identify: [quiz item]")) ... do stuff based on response This displays the question in the buffer and the minibuffer. The response is read in from the minibuffer. This isn't deal-breakingly bad, but a better design would read the response from the buffer and skip the minibuffer entirely. Is there an easy way to read a response from the buffer instead of the minibuffer? If it matters, a "response" is a string of 1-8 alphabetic characters terminated by a newline/return key.