nmh-workers
[Top][All Lists]
Advanced

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

[Nmh-workers] nmh readline support


From: rader
Subject: [Nmh-workers] nmh readline support
Date: Tue, 20 Dec 2011 08:29:34 -0600

 > 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??  

(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);
  }
?

(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?

(4) I'm not motivated to also auto-complete switches.  Perhaps that's okay.
Perhaps someone else can add that.

steve
--

Attachment: PATCH
Description: Text document


reply via email to

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