From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: How to handle default value in read-string?
Date: Wed, 05 Aug 2015 22:02:03 +0200 [thread overview]
Message-ID: <87a8u5v70k.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: 87k2tc9jeu.fsf@mbork.pl
Marcin Borkowski <mbork@mbork.pl> writes:
> I'd like read-string to somehow indicate the default
> value. A natural idea is to include it in the
> prompt, for example having a prompt like
>
> (format "Foo (%s): " default)
>
> However, Icicles' version of read-string already does
> exactly that, so for Icicles users this would
> be superfluous.
>
> So here's the question: is there a better way than
> just have a prompt of
>
> (if icicle-mode (don't-include-default)
> (do-include-default))?
You want it to be there for everyone that uses your
thing, not just those using icicle-mode as well.
You shouldn't require it just to get such a small
thing, so either way you must include your own
version. And if you include your own version, you may
as well just use it for everyone and don't bother with
Icicles at all. That way is more consistent as well as
more logical.
The best solution for everyone involved is of course
for vanilla Emacs to have a thing for this and then
everyone that needs it can use it from there.
But since it is so simple why not just put it there
and move on?
--
underground experts united
http://user.it.uu.se/~embe8573
prev parent reply other threads:[~2015-08-05 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 21:00 How to handle default value in read-string? Marcin Borkowski
2015-08-03 21:17 ` John Mastro
2015-08-03 23:40 ` Marcin Borkowski
2015-08-03 23:51 ` Drew Adams
2015-08-04 18:44 ` Marcin Borkowski
2015-08-19 21:15 ` Marcin Borkowski
2015-08-21 7:46 ` Drew Adams
2015-08-05 20:02 ` Emanuel Berg [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8u5v70k.fsf@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).