bug-bash
[Top][All Lists]
Advanced

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

Re: Setting READLINE_POINT isn't always applied (4.0.24)


From: Chet Ramey
Subject: Re: Setting READLINE_POINT isn't always applied (4.0.24)
Date: Fri, 24 Jul 2009 20:30:24 -0400
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)

Henning Bekel wrote:

>> I wonder if we could specify whether or not to completely redraw
>> the line with a return status.
> 
> As far as I see it there hasn't been a reason to return a specific 
> value from a function bound via -x in the past, has there? Still, 
> maybe some users have done so out of principle (as in "I just 
> always return 0 on success for any function"), and thus giving 
> meaning to the return value might result in unexpected behaviour 
> for existing code... not sure about this.
> 
> Alternatively, couldn't another option like '-X' be introduced for 
> bind to explicitly request not to redraw the line completely? Or 
> would you consider this feature creep?

I'd rather use something like the command returning 2 to denote this.
There's precedent here:  the debugging code uses 2 as a special return
status from the DEBUG trap to do different things.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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