[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] GNU readline whatnowproc (was tab completion)

From: Valdis . Kletnieks
Subject: Re: [Nmh-workers] GNU readline whatnowproc (was tab completion)
Date: Tue, 21 Dec 2010 12:08:58 -0500

On Tue, 21 Dec 2010 15:28:01 GMT, Peter Maydell said:

> Also, given that we basically have all the information about
> accepted switches in the ansp parameter, it would be cool if we
> could pass that along to readline so tab completion completed
> commands rather than just filenames. This in particular would
> mean you'd just want to always have getans() tab complete,
> because it wouldn't tab-complete filenames unless it was
> appropriate. That's more work than just calling readline(),
> though.

Agreed that if we are going to do it, we should do it right.

> I would prefer the default to be "use readline if it is
> present at compile time", rather than "do not use". Otherwise
> most users (and probably most distro package builders!) will
> never realise the option is there.


> plain old getans(). [Question: when do we want the fancy
> vs non fancy getans? Maybe there should just be one, and
> we make getans() do tab completion if we have readline?]

That would be the best approach, I think.

Attachment: pgpVfjpzbfKzM.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]