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: Sun, 17 Nov 2013 05:52:33 +0200 Message-ID: <83eh6fhegu.fsf@gnu.org> References: <87siuyxvw7.fsf@web.de> <83li0qhxyl.fsf@gnu.org> <878uwpgvh8.fsf@web.de> <83y54ohh1n.fsf@gnu.org> <87siuv21v8.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384660391 32595 80.91.229.3 (17 Nov 2013 03:53:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 03:53:11 +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 Sun Nov 17 04:53: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 1VhtQB-0006vt-0a for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2013 04:53:15 +0100 Original-Received: from localhost ([::1]:37895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhtQA-00089i-Ka for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 22:53:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhtQ3-00089d-96 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 22:53:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhtPy-0007J6-DB for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 22:53:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhtPy-0007J2-8i for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 22:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VhtPx-00056o-U6 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 22:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2013 03:53:01 +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.138466037319620 (code B ref 15900); Sun, 17 Nov 2013 03:53:01 +0000 Original-Received: (at 15900) by debbugs.gnu.org; 17 Nov 2013 03:52:53 +0000 Original-Received: from localhost ([127.0.0.1]:57766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhtPp-00056O-8r for submit@debbugs.gnu.org; Sat, 16 Nov 2013 22:52:53 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59508) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhtPm-000568-5U for 15900@debbugs.gnu.org; Sat, 16 Nov 2013 22:52:52 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MWE00M002G2CW00@a-mtaout20.012.net.il> for 15900@debbugs.gnu.org; Sun, 17 Nov 2013 05:52:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWE00M802RUBZ30@a-mtaout20.012.net.il>; Sun, 17 Nov 2013 05:52:43 +0200 (IST) In-reply-to: <87siuv21v8.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:80673 Archived-At: > From: Michael Heerdegen > Cc: 15900@debbugs.gnu.org, drew.adams@oracle.com > Date: Sun, 17 Nov 2013 03:33:47 +0100 > > > > If faces are among them, I still must figure out if one of these > > > faces changes the foreground. > > > > You can know them in advance, I think. Your example talks about > > links, which use a known face. I presume there are only a few faces > > that needs such a special treatment, which would make the list of them > > quite short. > > > > IOW, why not test against a known list of properties that you want to > > leave alone, instead of digging into their color? > > I think the missing information you didn't have is that this is a > general mode, it must work in any Emacs buffer. w3m was only an example > - info, man, and gnus are others. So, testing for hardcoded face or > property lists is not really an option. I still don't see why it isn't an option, even for a general-purpose mode. The list of faces that need such special treatment must be quite short, and it can be a defcustom.