[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] switches and smatch
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] switches and smatch |
Date: |
Mon, 29 Jan 2018 11:43:14 +0000 |
Hi Paul,
I've made a note of your and Ken's suggestions.
> http://blog.llvm.org/2017/09/clang-bash-better-auto-completion-is.html
Having every program, clang, nmh, vim, etc., implement --autocomplete
seems a poor solution. The bash script they provide has knowledge of
some of clang's options so it can augment the request, so a generic
`--autocomplete' using script is still required. And `--autocomplete'
looks like the `AutoComplete' mail header to nmh. :-)
I'm surprised they didn't plump for Ken's idea of simply printing a
well-defined option definition and have a generic script mangle that
into a shell's completion system, but the need to spot `-cc1', for
example, and alter behaviour probably stopped that.
We already install /etc/nmh/bash_completion_nmh. (I'm guessing zsh
users can make use of that too? Oliver?) That seems good enough; it's
built from man/mh-chart.man which is in turn build from the other man
pages. If bash_completion_nmh is faulty then that's something that
needs attention.
An option to dump an nmh program's options so a script can build upon
them could be useful. Or should the script just insist on its first,
e.g. «pickall -literal +foo +bar -- -sub 'not.*a[regexp]'».
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
- Re: [Nmh-workers] rcvdist with non-default port, (continued)
- Re: [Nmh-workers] rcvdist with non-default port, Ralph Corderoy, 2018/01/27
- Re: [Nmh-workers] switches and smatch, David Levine, 2018/01/27
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/27
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Paul Vixie, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/28
- Re: [Nmh-workers] switches and smatch,
Ralph Corderoy <=
- Re: [Nmh-workers] switches and smatch, Bakul Shah, 2018/01/29
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/29
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/30
- Re: [Nmh-workers] switches and smatch, Bakul Shah, 2018/01/30
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, Ralph Corderoy, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Ken Hornstein, 2018/01/18