From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#15900: 24.3.50; foreground-color-at-point returns wrong results Date: Fri, 15 Nov 2013 03:04:56 +0100 Message-ID: <87siuyxvw7.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384481181 28599 80.91.229.3 (15 Nov 2013 02:06:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2013 02:06:21 +0000 (UTC) To: 15900@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 15 03:06:26 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 1Vh8nf-0003fS-4v for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Nov 2013 03:06:23 +0100 Original-Received: from localhost ([::1]:58072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh8ne-0005Ye-Kg for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2013 21:06:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh8nV-0005Xd-Ag for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:06:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh8nK-0002Ng-I2 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:06:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh8nK-0002Nc-Eb for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vh8nK-0005GL-6S for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Nov 2013 02:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15900 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138448113020182 (code B ref -1); Fri, 15 Nov 2013 02:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2013 02:05:30 +0000 Original-Received: from localhost ([127.0.0.1]:52886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vh8mm-0005FR-P3 for submit@debbugs.gnu.org; Thu, 14 Nov 2013 21:05:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vh8mk-0005FB-E9 for submit@debbugs.gnu.org; Thu, 14 Nov 2013 21:05:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh8mX-0002I1-Tc for submit@debbugs.gnu.org; Thu, 14 Nov 2013 21:05:20 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh8mX-0002Hw-QM for submit@debbugs.gnu.org; Thu, 14 Nov 2013 21:05:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh8mR-0005Nr-KO for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:05:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh8mL-00023r-FH for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:05:07 -0500 Original-Received: from mout.web.de ([212.227.15.3]:59249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh8mL-0001zp-55 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 21:05:01 -0500 Original-Received: from drachen.dragon ([90.186.115.39]) by smtp.web.de (mrweb102) with ESMTPA (Nemesis) id 0MeBDG-1W4tEK3xIk-00PuV8 for ; Fri, 15 Nov 2013 03:04:59 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:Y4797u+oDRsFM9UiepFJenVKytp2uUm0mXBcv98dfGkebPcVCwm GIkX9rXzHZl+0lbkMEW9h3NdzzG8JUSYVkL16kT/eRLPfhk5zO9spYdva78KFs6o1cSGMJX dWJxlRPxlENnFz94n3QLA2XSxtziBCh5u8wex/eqKvvpnZLqDVJR4/K8iL6KvZ5dByl7hvx KazF0xxVNh5tWPooCY5Hw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:80462 Archived-At: Hello, `foreground-color-at-point' doesn't return the expected result when there are several faces at point present. For example, on the red subject in a Gnus article buffer, or on a blue link in w3m, it returns "black". Looking at the code, I see that `foreground-color-at-point' uses (face-at-point) i.e., it looks only at one face and disregards the others. This is especially meaningless when this first face doesn't specify any foreground at all. Thanks, Michael. P.S. Some background: I'm working on an addition to stripe-buffer.el that changes the foreground color continuously, instead of changing the background. This is for better readability. I want to keep the foreground colors already present, so that e.g. links in w3m are still recognizable. Paragraphs in italic can be colored OTOH. So, what I need is a reliable `foreground-color-at-point'. Tips and alternatives welcome. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4) of 2013-11-13 on drachen Windowing system distributor `The X.Org Foundation', version 11.0.11403000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure --prefix=/usr/local/built/'