[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to handle default value in read-string?
From: |
Marcin Borkowski |
Subject: |
How to handle default value in read-string? |
Date: |
Mon, 03 Aug 2015 23:00:41 +0200 |
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
- How to handle default value in read-string?,
Marcin Borkowski <=