[PATCH] Add active mark, face support; activate mark on paste

2018-03-09 Thread Daniel Colascione
This patch teaches readline about two concepts from Emacs: 1) faces, and 2) the mark being "active". Both exist in rudimentary form: we support exactly two faces, normal and "standout", and use standout to highlight the contents of the region when the mark is active. Readline redisplay is now

Re: Unexpected behavior of 'declare +n var' when var's target is unset and undeclared

2018-03-09 Thread Chet Ramey
On 3/8/18 2:51 PM, GreatBigDot wrote: > Bash Version: 4.4 > Patch Level: 19 > Release Status: release > > Description: > If you try to turn a nameref back a regular variable with > 'declare -n' but the nameref is pointing to an undeclared variable, the > nameref remains a nameref, and the

Re: indirect variable behavior breakage

2018-03-09 Thread christopher barry
On Fri, 9 Mar 2018 11:29:35 -0500 Chet Ramey wrote: > On 3/7/18 3:20 PM, christopher barry wrote: > > On Wed, 7 Mar 2018 11:45:13 -0500 > > christopher barry wrote: > > > > ===8<---snip > > > >> > >> I am in fact using this method with associative

Re: indirect variable behavior breakage

2018-03-09 Thread Chet Ramey
On 3/7/18 3:20 PM, christopher barry wrote: > On Wed, 7 Mar 2018 11:45:13 -0500 > christopher barry wrote: > > ===8<---snip > >> >> I am in fact using this method with associative arrays. >> >> I have a default hash that is full of default values for a particular >> generic

Re: misleading error message from variable modifier

2018-03-09 Thread don fong
> If you'd like to augment the test suite where you feel it lacks something, > please feel free to do so. tests were included in my patch. you deleted them. i think they should be added in. > are there any tests that cover the variable modifiers, either unit tests > or > > functional tests? >