Subject: bug#9134: don't force mystery on user trying to find out what is completing after the word "ssh" in *shell*

From: Phil Sainty <[email-masked]>
Date: Mon, 14 Oct 2019 16:32:03 +1300

On 2019-10-14 14:48, Lars Ingebrigtsen wrote:
> [email-masked] writes:
> 
>> When we hit TAB in *shell* after the word "ssh",
>> 
>> * there are no messages about where in the world it is getting its
>>   completions. Unlike dabbrev-expand.
> 
> That is pretty mysterious behaviour; yes.  Would flashing a message
> saying "Looking for host names in ~/.ssh/known_hosts and ~/.ssh/config"
> be helpful?

I think it would be nicer if the *Completions* buffer text explained it.

i.e. additional information added to this:

"Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:"

That's mostly from `completion-setup-function'.  Perhaps that could be
made to incorporate text from a new var, which could then be bound
dynamically in cases where extra context was desirable?

-Phil