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#15900: 24.3.50; foreground-color-at-point returns wrong results Date: Mon, 18 Nov 2013 05:42:13 +0200 Message-ID: <8361rqgyui.fsf@gnu.org> References: <69fed86b-8fdb-4563-88f5-715dc7fce1be@default> <83bo1ihqe9.fsf@gnu.org> <87a9h264do.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384746193 17757 80.91.229.3 (18 Nov 2013 03:43:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 03:43:13 +0000 (UTC) Cc: 15900@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 18 04:43:17 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 1ViFk5-0001VM-4g for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2013 04:43:17 +0100 Original-Received: from localhost ([::1]:41118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViFk4-0008Kj-HO for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2013 22:43:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViFjw-0008KQ-Mx for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 22:43:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViFjr-0001Dg-RL for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 22:43:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViFjr-0001Db-NL for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 22:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ViFjr-0000eK-AZ for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 22:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Nov 2013 03:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15900 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15900-submit@debbugs.gnu.org id=B15900.13847461522452 (code B ref 15900); Mon, 18 Nov 2013 03:43:02 +0000 Original-Received: (at 15900) by debbugs.gnu.org; 18 Nov 2013 03:42:32 +0000 Original-Received: from localhost ([127.0.0.1]:59290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ViFjM-0000dT-1D for submit@debbugs.gnu.org; Sun, 17 Nov 2013 22:42:32 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:48277) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ViFjG-0000d8-TG for 15900@debbugs.gnu.org; Sun, 17 Nov 2013 22:42:28 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MWF00700WNEY400@a-mtaout21.012.net.il> for 15900@debbugs.gnu.org; Mon, 18 Nov 2013 05:42:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWF0078VWYJR9B0@a-mtaout21.012.net.il>; Mon, 18 Nov 2013 05:42:20 +0200 (IST) In-reply-to: <87a9h264do.fsf@web.de> 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:80709 Archived-At: > From: Michael Heerdegen > Cc: Drew Adams , 15900@debbugs.gnu.org > Date: Sun, 17 Nov 2013 23:38:11 +0100 > > Hello, > > > > I think he means that the value of property `face' (whether from > > > a text property or an overlay property) can be a list of faces. > > Indeed. Plus, I want to look at the font-lock-face property. > > > Yes, but then you get all that list in a single call to > > get-char-property, right? So where's the difficulty in collecting > > "all the faces at point"? > > There's no difficulty. Then I don't understand why you still want to analyze colors instead of analyzing faces. This is what my suggestion boiled down to: instead of trying to figure out the foreground color of the text at point, just compare its face(s) with a list of known faces whose appearance you don't want to override. > Eli, did you ever read the code snip I had included? Of course, I did. But it still talks about colors, something I suggested to avoid.