nmh-workers
[Top] [All Lists]

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

2010-12-21 11:09:28
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.

+1

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: pgpMJQihHsud5.pgp
Description: PGP signature

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>