From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15668: 24.3.50; No font lock on active region Date: Fri, 1 Nov 2013 16:54:46 +0100 Message-ID: <7D46A066-4DCB-45DE-8815-34E60FC58260@swipnet.se> References: <83zjq2k2nf.fsf@gnu.org> <83ppqyjvea.fsf@gnu.org> <2C8BA579-44A4-429A-80C4-F60D6F5F8E54@swipnet.se> <83eh7djmn4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383321316 21597 80.91.229.3 (1 Nov 2013 15:55:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2013 15:55:16 +0000 (UTC) Cc: 15668-done@debbugs.gnu.org, "darren.hoo@gmail.com Hoo" To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 16:55:20 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 1VcH4B-0008AA-Pa for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2013 16:55:19 +0100 Original-Received: from localhost ([::1]:38830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcH4B-0000jL-DL for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2013 11:55:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcH43-0000iw-0B for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 11:55:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcH3x-0007y5-T1 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 11:55:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcH3x-0007xy-QT for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 11:55:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VcH3x-0002gr-5x for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 11:55:05 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2013 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15668@debbugs.gnu.org, jan.h.d@swipnet.se, darren.hoo@gmail.com Original-Received: via spool by 15668-done@debbugs.gnu.org id=D15668.138332129310319 (code D ref 15668); Fri, 01 Nov 2013 15:55:01 +0000 Original-Received: (at 15668-done) by debbugs.gnu.org; 1 Nov 2013 15:54:53 +0000 Original-Received: from localhost ([127.0.0.1]:57667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcH3k-0002gL-Tm for submit@debbugs.gnu.org; Fri, 01 Nov 2013 11:54:53 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:40712) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VcH3h-0002g7-0Q for 15668-done@debbugs.gnu.org; Fri, 01 Nov 2013 11:54:50 -0400 Original-Received: (qmail 16016 invoked by uid 89); 1 Nov 2013 15:54:46 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 1 Nov 2013 15:54:46 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 9197B1A01C4; Fri, 1 Nov 2013 15:54:46 +0000 (UTC) In-Reply-To: <83eh7djmn4.fsf@gnu.org> X-Mailer: Apple Mail (2.1816) 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:79860 Archived-At: Hello. 22 okt 2013 kl. 18:28 skrev Eli Zaretskii : >> From: Jan Dj=E4rv >> Date: Tue, 22 Oct 2013 18:14:03 +0200 >> Cc: darren.hoo@gmail.com, >> 15668@debbugs.gnu.org >>=20 >> Hello. >>=20 >> 21 okt 2013 kl. 21:06 skrev Eli Zaretskii : >>=20 >>>> From: Jan Dj=E4rv >>>> Date: Mon, 21 Oct 2013 20:47:25 +0200 >>>> Cc: Darren Hoo , >>>> 15668@debbugs.gnu.org >>>>=20 >>>> 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. >>>=20 >>> Sounds like a simple enough extension to defface. >>=20 >> 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. >=20 > That's what I had in mind, yes. >=20 >> I think the calculation of close and maybe handling face inheritance = is a bit tricky. >=20 > Some distance in the RGB space might fit the former. I'm quite sure > color comparison is something for which algorithms are readily > available. Actually there is a color_distance function in xfaces.c already. I implemented :distant-foreground to be used as a fallback, checked in = to trunk. Marking this bug as done. Jan D.