From: Juri Linkov <juri@jurta.org>
To: emacs-devel@gnu.org
Subject: Match color fix
Date: Sun, 11 Mar 2007 21:41:01 +0200 [thread overview]
Message-ID: <87abyj7e56.fsf@jurta.org> (raw)
The most widespread background color to highlight matches nowadays is
yellow. It is used by many popular programs like Firefox to highlight
search results on the Web page, Web services like Google to highlight
search terms on the result page, and by many other programs and web sites.
It is a good color because it is very noticeable, and at the same time the
text on yellow background is still well readable. It would be good to use
this background color for the `match' face on the default white background
in Emacs.
The `match' face is a new face in Emacs 22. The reason why I proposed
its current default color is because it looks well only on my then background
which was darker than the default white background (it was actually
"AntiqueWhite3"). And now after looking at this face on the default
white background I feel guilty for proposing such a bad color.
Fortunately, it is not too late to fix this misfeature before the release
with the following patch:
Index: lisp/replace.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/replace.el,v
retrieving revision 1.253
diff -c -r1.253 replace.el
*** lisp/replace.el 8 Mar 2007 15:17:42 -0000 1.253
--- lisp/replace.el 11 Mar 2007 19:33:11 -0000
***************
*** 849,858 ****
\f
(defface match
'((((class color) (min-colors 88) (background light))
! :background "Tan")
(((class color) (min-colors 88) (background dark))
:background "RoyalBlue3")
! (((class color) (min-colors 8))
:background "blue" :foreground "white")
(((type tty) (class mono))
:inverse-video t)
--- 849,860 ----
\f
(defface match
'((((class color) (min-colors 88) (background light))
! :background "yellow")
(((class color) (min-colors 88) (background dark))
:background "RoyalBlue3")
! (((class color) (min-colors 8) (background light))
! :background "yellow" :foreground "black")
! (((class color) (min-colors 8) (background dark))
:background "blue" :foreground "white")
(((type tty) (class mono))
:inverse-video t)
--
Juri Linkov
http://www.jurta.org/emacs/
next reply other threads:[~2007-03-11 19:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-11 19:41 Juri Linkov [this message]
2007-03-12 1:27 ` Match color fix Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87abyj7e56.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).