From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15668: 24.3.50; No font lock on active region Date: Tue, 22 Oct 2013 19:28:15 +0300 Message-ID: <83eh7djmn4.fsf@gnu.org> References: <83zjq2k2nf.fsf@gnu.org> <83ppqyjvea.fsf@gnu.org> <2C8BA579-44A4-429A-80C4-F60D6F5F8E54@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1382459353 25394 80.91.229.3 (22 Oct 2013 16:29:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 16:29:13 +0000 (UTC) Cc: 15668@debbugs.gnu.org, darren.hoo@gmail.com To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 22 18:29:15 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYepX-0005Ri-Oe for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 18:29:15 +0200 Original-Received: from localhost ([::1]:45825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYepX-0004Np-BE for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 12:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYepP-0004Mf-OM for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 12:29:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYepK-0007eA-Gp for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 12:29:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYepK-0007e6-DL for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 12:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VYepJ-0001T4-UY for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 12:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2013 16:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15668-submit@debbugs.gnu.org id=B15668.13824592915564 (code B ref 15668); Tue, 22 Oct 2013 16:29:01 +0000 Original-Received: (at 15668) by debbugs.gnu.org; 22 Oct 2013 16:28:11 +0000 Original-Received: from localhost ([127.0.0.1]:35427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYeoU-0001Re-DD for submit@debbugs.gnu.org; Tue, 22 Oct 2013 12:28:10 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45367) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYeoR-0001R6-Ck for 15668@debbugs.gnu.org; Tue, 22 Oct 2013 12:28:08 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MV200C00WCBVW00@a-mtaout22.012.net.il> for 15668@debbugs.gnu.org; Tue, 22 Oct 2013 19:28:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MV200CBIWEON970@a-mtaout22.012.net.il>; Tue, 22 Oct 2013 19:28:00 +0300 (IDT) In-reply-to: <2C8BA579-44A4-429A-80C4-F60D6F5F8E54@swipnet.se> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79500 Archived-At: > From: Jan Djärv > Date: Tue, 22 Oct 2013 18:14:03 +0200 > Cc: darren.hoo@gmail.com, > 15668@debbugs.gnu.org > > Hello. > > 21 okt 2013 kl. 21:06 skrev Eli Zaretskii : > > >> From: Jan Djärv > >> Date: Mon, 21 Oct 2013 20:47:25 +0200 > >> Cc: Darren Hoo , > >> 15668@debbugs.gnu.org > >> > >> It would be nice if one could define a face with a foreground color to be used when foreground and background otherwise are to similar. > > > > Sounds like a simple enough extension to defface. > > Well, yes, but I envisioned that querying the face for the foreground would automatically give the "fallback" foreground when the background is close to the foreground that would otherwise be used. That's what I had in mind, yes. > I think the calculation of close and maybe handling face inheritance is a bit tricky. Some distance in the RGB space might fit the former. I'm quite sure color comparison is something for which algorithms are readily available.