[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: completing-read in E21
From: |
Mario Lang |
Subject: |
Re: completing-read in E21 |
Date: |
06 Dec 2001 14:23:35 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Richard Stallman <address@hidden> writes:
> But there are situations where the default is the right value for
> say 90% of the time the function gets called.
>
> This is a reason to provide a default, not a reason for initial input.
> Why do you think a default value is not sufficient?
Because in the case where the default value is e.g. determined
through thing-at-point, the user would need to hit M-n RET
instead of just RET.
Imagine a user positions point at some word in a buffer, and
calls a interactive function to do some operation on that word.
This function uses e.g. thing-at-point to get that "default" value.
If it uses completion-read with a default-value, the user needs
to hit `M-n RET' if it uses a initial-input, the user would
only need to hit `RET', but has the option to hit C-k and type
another word, in case thing-at-point didnt find the right one, or point
was at the wrong place.
Thats just one example of initial-input being useful.
--
CYa,
Mario <address@hidden>
- completing-read in E21, Mario Lang, 2001/12/03
- Re: completing-read in E21, Richard Stallman, 2001/12/04
- Re: completing-read in E21, Kim F. Storm, 2001/12/05
- Re: completing-read in E21, Kim F. Storm, 2001/12/05
- Re: completing-read in E21, Richard Stallman, 2001/12/06
- Re: completing-read in E21, Kim F. Storm, 2001/12/06
- Re: completing-read in E21, Stefan Monnier, 2001/12/06
- Re: completing-read in E21, Kim F. Storm, 2001/12/06
- Re: completing-read in E21, Richard Stallman, 2001/12/07
Message not available