[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35564: [PATCH v5] Tweak dired warning about "wildcard" characters
From: |
Juri Linkov |
Subject: |
bug#35564: [PATCH v5] Tweak dired warning about "wildcard" characters |
Date: |
Wed, 30 Oct 2019 23:59:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>>> 1. Why there is the verbose option “toggle [D]etails”
>>> while just “[?]” should be enough. For example, like
>>> in query-replace typing ‘?’ displays the Help window,
>>> just typing ‘?’ here could display the Dired Help.
>>
>> '?' is an automatic option added by read-multiple-choice. It pops-up an
>> autogenerated buffer repeating the prompt and showing longer
>> descriptions for each option.
>>
>> I would have liked '?' to show what I ended up putting in the "details"
>> buffer; ideally read-multiple-choice would have an optional HELP-MESSAGE
>> argument that could be squeezed between the prompt and the key
>> description when showing the help buffer.
>
> '?' would be more preferable since this is the standard way to ask
> for additional information in Dired, for example, on error it shows:
>
> Dired error--type ? for details
>
> where '?' shows the details. dired-do-shell-command should do the same
> in its prompt. read-multiple-choice could be changed to not add
> its own help option when a '?' is provided in its 'choices' arg.
I meant using the same logic as in 'read-answer':
(if (assoc "help" answers)
answers
(append answers '(("help" ?? "show this help message"))))
i.e. if '?' is provided in the function argument then use it,
otherwise use the default value.