GNU bug report logs -
#12443
24.2.50; Default values in the minibuffer prompt (fix
Previous Next
Reported by: Dani Moncayo <dmoncayo <at> gmail.com>
Date: Fri, 14 Sep 2012 14:08:01 UTC
Severity: minor
Found in version 24.2.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 12443 <at> debbugs.gnu.org (full text, mbox):
>> > So, hereby I propose to fix this, i.e., to omit the "default " in
>> > those commands where this is currently shown.
>>
>> I find the "(default ...)" text to use up too much space for
>> my own taste, so I use the patch below to rewrite it on-the-fly
>> to "[...]".
>
> Just get rid of "(default ...)" altogether. A user can use `M-n' to see the
> default value, and `M-n RET' instead of `RET' to choose it. No big deal, and a
> lot less noise.
But some users may prefer to see the default value in the prompt.
> ---
>
> Or do as I do in Icicles: give users the choice, across all minibuffer prompts.
> They have an option, with these possible values:
>
> nil - Do not insert default value
> or add it to prompt.
> t - Add default value to prompt
> (except for `read-file-name' and
> `read-from-minibuffer').
> Do not insert it.
> `insert-start' - Insert default value
> and leave cursor at start.
> `insert-end' - Insert default value
> and leave cursor at end.
> `preselect-start' - Insert and preselect default value;
> leave cursor at beginning.
> `preselect-end' - Insert and preselect default value;
> leave cursor at end.
>
That looks like a good improvement, indeed.
> The default value of the option is `t' (mainly to be closer to what people are
> used to in vanilla Emacs). But what I am suggesting for Emacs is the `nil'
> behavior as default: do nothing with the default value. (Personally, I use
> `insert-end'.)
I'm not sure what would be the more suitable default value (whether
nil ot t), in any case, this is secondary, as anyone could customize
it.
--
Dani Moncayo
This bug report was last modified 4 years and 123 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.