From: ken <gebser@mousecar.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: need obsolete arg in (read-from-minibuffer ...) in Version 2.0.
Date: Sat, 19 Mar 2011 01:51:34 -0400 [thread overview]
Message-ID: <4D844466.5040706@mousecar.com> (raw)
In-Reply-To: <jwvbp17j2lc.fsf-monnier+gnu.emacs.help@gnu.org>
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.
>
>....
prev parent reply other threads:[~2011-03-19 5:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 20:23 need obsolete arg in (read-from-minibuffer ...) ken
2011-03-18 20:37 ` Drew Adams
2011-03-18 22:12 ` ken
2011-03-18 23:03 ` Drew Adams
2011-03-19 2:22 ` ken
2011-03-19 2:34 ` Drew Adams
[not found] ` <mailman.0.1300501334.15172.help-gnu-emacs@gnu.org>
2011-03-22 1:02 ` Stefan Monnier
[not found] ` <mailman.23.1300486344.31996.help-gnu-emacs@gnu.org>
2011-03-19 1:59 ` Stefan Monnier
2011-03-19 5:23 ` ken
2011-03-19 5:51 ` ken [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D844466.5040706@mousecar.com \
--to=gebser@mousecar.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.