From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: need obsolete arg in (read-from-minibuffer ...) in Version 2.0. Date: Sat, 19 Mar 2011 01:51:34 -0400 Message-ID: <4D844466.5040706@mousecar.com> References: <4D83BF4A.1030707@mousecar.com> <57C62106C2FC4A8DABE33A73A9A35201@us.oracle.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300513952 17608 80.91.229.12 (19 Mar 2011 05:52:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 05:52:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 06:52:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0p5P-0003e4-MH for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 06:52:27 +0100 Original-Received: from localhost ([127.0.0.1]:47697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0p5O-0004rI-Ck for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 01:52:26 -0400 Original-Received: from [140.186.70.92] (port=33298 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0p4f-0004oq-BP for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 01:51:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0p4e-0000uG-9O for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 01:51:41 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:58074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0p4e-0000u1-4S for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 01:51:40 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0MF5NL-1QH6sl2UFn-00GN2f; Sat, 19 Mar 2011 01:51:38 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:GWkkeWsWOMvsBInEN39zNcOCSR3xFELX8KJZ87SePbq /jRouA5+rbXPqb+alyKoR4ouzTG+6hbfI4GZaLB1riNa3KxT7c PgEPeN0LC1B5vSR31ISIC+g9QaNChWcnj/DOUgvCKFFLu/tsbg 1jx14ss1M1Z5V1lD/tc7JN/Z/3Ht9SHDI+oRXkgRMQ/wtZomXy Z9/spFgOtqnPcUtYa80rJomhTQOzrGaWaIntzqxj88= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80267 Archived-At: On 12/31/1969 07:00 PM wrote: >>>> .... > > First note: you probably don't want to use read-from-minibuffer, but use > read-string instead (read-from-minibuffer is lower-level and slightly more > tricky to use right). read-from-minibuffer has that history arg that I want to look into eventually (maybe if I later do a Version 2 of what I'm doing now). But there'd be a twist: Because the user would be required to input a *unique* string, it would mean s/he couldn't input anything already listed in the history. I first thought of a while loop which would throw the user back into the minibuffer if the typed/chosen string weren't unique... but that seems bogus. It would be a smoother UI if the minibuffer opened once and didn't close until the string the user typed (or selected) was unique (or the user did a quit). How would that be done in read-from-minibuffer or with read-string? Thanks some more. > >....