From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: [PATCH] isearch: lazy-highlighting of sub-exps of regexps Date: Wed, 24 Nov 2010 19:20:25 -0800 Message-ID: <097F9B4B25634F039D1595A2018A5AC5@us.oracle.com> References: <87oc9g7t08.fsf@mail.jurta.org><87pqtv32p7.fsf@mail.jurta.org> <871v6ambb6.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290655319 15987 80.91.229.12 (25 Nov 2010 03:21:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2010 03:21:59 +0000 (UTC) Cc: 'Andrew Helsley' , 'Stefan Monnier' , emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 25 04:21:54 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLSPC-0007yq-ML for ged-emacs-devel@m.gmane.org; Thu, 25 Nov 2010 04:21:54 +0100 Original-Received: from localhost ([127.0.0.1]:45512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLSPC-00032K-5y for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 22:21:54 -0500 Original-Received: from [140.186.70.92] (port=58781 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLSP7-000327-Pa for emacs-devel@gnu.org; Wed, 24 Nov 2010 22:21:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLSP6-0001BP-0T for emacs-devel@gnu.org; Wed, 24 Nov 2010 22:21:49 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:39495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLSP5-0001B7-RW for emacs-devel@gnu.org; Wed, 24 Nov 2010 22:21:47 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oAP3LhiF027879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 25 Nov 2010 03:21:45 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oAP3DTda011480; Thu, 25 Nov 2010 03:21:41 GMT Original-Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 812157201290655221; Wed, 24 Nov 2010 19:20:21 -0800 Original-Received: from dradamslap1 (/10.159.246.94) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 24 Nov 2010 19:20:21 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcuMQnufn4bIaEjESLmayVGzR8D5AQACfMoA In-Reply-To: <871v6ambb6.fsf@mail.jurta.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133132 Archived-At: > > I picked the default colors by tweaking (using palette.el). > > I picked the dark-background colors by starting with the > > complements of the light-background colors (and then > > modifying a bit, IIRC). I probably got some user feedback on > > the dark-background colors (I use a light background, > > myself), but I don't remember. > > I'm tempted to try a rainbow, because it has a very intuitive palette. FWIW, I deliberately did not do that. Successive levels should have colors that are quite distinctive; otherwise it can be more difficult to distinguish their boundaries. IOW, instead of red yellow green cyan blue magenta, mix it up so that near hues are not adjacent: cyan is not next to green or blue, etc. The order, in the sense of group level, is not significant (helpful). If it were, then you could perhaps argue in favor of rainbow order: Seeing green you could look for cyan as the next level (numerically) etc. All that is important in terms of matching is visual distinction: telling where one match ends and the next (adjacent) one begins; that is, distinguishing one group from another. Cyan is easier to distinguish from red, yellow, or magenta than it is from green or blue. But arguments are one thing. Another is to experiment.