all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: 'Andrew Helsley' <helsleya@cs.ucr.edu>,
	'Stefan Monnier' <monnier@IRO.UMontreal.CA>,
	emacs-devel@gnu.org
Subject: RE: [PATCH] isearch: lazy-highlighting of sub-exps of regexps
Date: Wed, 24 Nov 2010 19:20:25 -0800	[thread overview]
Message-ID: <097F9B4B25634F039D1595A2018A5AC5@us.oracle.com> (raw)
In-Reply-To: <871v6ambb6.fsf@mail.jurta.org>

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




      reply	other threads:[~2010-11-25  3:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 10:38 [PATCH] isearch: lazy-highlighting of sub-exps of regexps Andrew Helsley
2010-11-23  0:59 ` Juri Linkov
2010-11-23 14:48   ` Stefan Monnier
2010-11-24  1:55     ` Juri Linkov
2010-11-24  2:43       ` Stefan Monnier
2010-11-24  5:03         ` Drew Adams
2010-11-25  1:39           ` Juri Linkov
2010-11-25  3:20             ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=097F9B4B25634F039D1595A2018A5AC5@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=helsleya@cs.ucr.edu \
    --cc=juri@jurta.org \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.