unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to handle default value in read-string?
@ 2015-08-03 21:00 Marcin Borkowski
  2015-08-03 21:17 ` John Mastro
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Marcin Borkowski @ 2015-08-03 21:00 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi everybody,

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))?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-08-21  7:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).