From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7163 invoked by alias); 8 Sep 2015 10:41:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36450 Received: (qmail 16876 invoked from network); 8 Sep 2015 10:41:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f5-f794b6d000001495-86-55eebb69f35f Date: Tue, 08 Sep 2015 11:41:43 +0100 From: Peter Stephenson To: zsh workers Subject: Re: region_highlight and zle_highlight[paste] Message-id: <20150908114143.7675342a@pwslap01u.europe.root.pri> In-reply-to: References: <20150907212211.GB9512@tarsus.local2> <20150908092746.5d25ad58@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t/xa7qZu9+FGiw8Z25xsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4Ml49O8xWcJC1YtLCz4wNjNtYuhg5OCQETCQ6bxp0MXICmWIS F+6tZ+ti5OIQEljKKPGm8SILhDODSaL99SMmCGcro8TpW+eZQFpYBFQldix4ygZiswkYSkzd NJsRxBYBijd//8cCYgsLmEmc757ICmLzCthLPO/oZAaxOQWCJS59fs4MMXQdo8Sk+2vAivgF 9CWu/v3EBHGTvcTMK2cYIZoFJX5Mvgc2lFlAS2LztiZWCFteYvOat2BDhQTUJW7c3c0+gVFo FpKWWUhaZiFpWcDIvIpRNLU0uaA4KT3XSK84Mbe4NC9dLzk/dxMjJGy/7mBceszqEKMAB6MS D6+Gx7tQIdbEsuLK3EOMEhzMSiK835YAhXhTEiurUovy44tKc1KLDzFKc7AoifPO3PU+REgg PbEkNTs1tSC1CCbLxMEp1cCY6T93woEO7qjEJqu1y/5MU/q0dWoF0x/N+B/rDM/9EmVYVzoh Pr3k15sHrqJ7EmS1nJ8eLgt89PvvOfbXN3uX7EkT/XHlUNfGvg0bHXtmdUg9qssTbL+yYPas 51Kc8/5Z5ShaCC3PEivpmF9e+lu4wLv/dcVGllsTLWY2b25ZI7f30LRtrTyTlViKMxINtZiL ihMBbCXSAlcCAAA= On Tue, 8 Sep 2015 12:27:13 +0200 Mikael Magnusson wrote: > I noticed that a specification for fg=red overrides a bg=blue > specification to no background. Would it be easy to merge these > instead? (for example bold + bg=blue works already). I think that's probably doable, though I have no interest in doing it myself. At the point in the code I indicated to Daniel you'd need to check if the attrribute currently being set didn't have TXTBGCOLOUR but what was previously in effect did, and in that case transfer the attribute. That doesn't sound too hard, but I haven't looked at this stuff for years (so the flags may not behave quite the way I'm assuming). pws