[PATCH 2/2] Implement completion limiting

Pedro Alves palves@redhat.com
Wed Feb 12 21:41:00 GMT 2014


On 02/12/2014 08:53 PM, Gary Benson wrote:
> Pedro Alves wrote:
>> On 02/12/2014 11:57 AM, Gary Benson wrote:
>>> +@smallexample
>>> +(@value{GDBP}) b @key{TAB}@key{TAB}
>>> +Too many possibilities.
>>> +@end smallexample
>>> +
>>
>> Does the user lose the edit line after that, or can he
>> continue typing the command?
> 
> You can continue typing, nothing is lost.

Like this?

  @smallexample
  (@value{GDBP}) b @key{TAB}@key{TAB}
  Too many possibilities.
+ (@value{GDBP}) b
  @end smallexample

Could you add that extra line to the example to make
that obvious in the docs?

>> I'd also suggest saying "completion candidates" instead of
>> "possibilities".  Sounds more accurate / less vague to me.
>> (here and elsewhere in the docs and inline help as well)
> 
> The reason I chose that as the message is to match up with 
> readline's own messages:
> 
>   $ ls 
>   Display all 140 possibilities? (y or n)
> 
> I'd prefer to keep "Too many possibilities" for consistency

Thanks, I agree, makes sense.

-- 
Pedro Alves



More information about the Gdb-patches mailing list