[Top][All Lists]

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

Re: [Nmh-workers] nmh readline support

From: David Levine
Subject: Re: [Nmh-workers] nmh readline support
Date: Sat, 24 Dec 2011 10:54:31 -0500

Steve wrote:

>  > Date: Tue, 21 Dec 2010 09:38:45 CST
>  > To: Peter Maydell <address@hidden>,
>  >  address@hidden
>  > From: address@hidden
>  > Subject: Re: [Nmh-workers] GNU readline whatnowproc (was tab
>  > completion)
>  >
>  > I like everything you've said.  I'll send along a better patch for
>  > consideration soon.
> 364 days later... here's a patch that I think correctly adds readline
> support to whatnowproc... some advice please...
> (1) Is it really safe to wedge this in everywhere like Peter Maydell
> asked for back on 12/21/2010??

Peter noted that readline is GPL, and there are some "BSD-ish"
licensed equivalents available.  nmh currently doesn't rely on
any GPL code, as far as I can tell, and I think we should maintain

> (2) What's the nmh native way to do...
>   char *dupstr (char *s) {
>     char *r;
>     r = xmalloc (strlen (s) + 1);
>     strcpy (r, s);
>     return (r);
>   }
> ?

strdup(), and it's used other places in nmh.

> (3) I'm not exactly sure why there are parens in some of the option
> syntax listings like "(de)tach [-n]".  I suspect they're indicating
> "de" is acceptable (in a non-readline-world), and thus this code (in
> a readlin eworld) should remove the parens?



reply via email to

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