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: Sun, 17 Nov 2013 03:33:47 +0100 Message-ID: <87siuv21v8.fsf@web.de> References: <87siuyxvw7.fsf@web.de> <83li0qhxyl.fsf@gnu.org> <878uwpgvh8.fsf@web.de> <83y54ohh1n.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384655656 22335 80.91.229.3 (17 Nov 2013 02:34:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 02:34:16 +0000 (UTC) Cc: 15900@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 17 03:34: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 1VhsBl-0007zH-UL for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2013 03:34:18 +0100 Original-Received: from localhost ([::1]:37789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhsBl-0004ES-IQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 21:34:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhsBc-00046G-PW for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 21:34:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhsBW-00058P-Qe for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 21:34:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhsBW-00058K-Mu for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 21:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VhsBW-0002zY-5S for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 21:34: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: Sun, 17 Nov 2013 02:34: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.138465563711490 (code B ref 15900); Sun, 17 Nov 2013 02:34:02 +0000 Original-Received: (at 15900) by debbugs.gnu.org; 17 Nov 2013 02:33:57 +0000 Original-Received: from localhost ([127.0.0.1]:57704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhsBR-0002zF-E9 for submit@debbugs.gnu.org; Sat, 16 Nov 2013 21:33:57 -0500 Original-Received: from mout.web.de ([212.227.15.4]:61727) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhsBP-0002z1-BT for 15900@debbugs.gnu.org; Sat, 16 Nov 2013 21:33:56 -0500 Original-Received: from drachen.dragon ([90.186.41.197]) by smtp.web.de (mrweb103) with ESMTPA (Nemesis) id 0MJl1M-1Viyds3SqK-0019g3 for <15900@debbugs.gnu.org>; Sun, 17 Nov 2013 03:33:49 +0100 In-Reply-To: <83y54ohh1n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Nov 2013 10:44:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:LWXMMHRIJEggbEurIpzMhc6ONv5jksPajRvAXvvxRXJ1TnKwYnf PlZUt/I5v2e/bicNu2p5YveVhixiI2cv+T1jldKbbtMDvhiNmVTW7zOa79cSYKbNhUIrX03 lFrO0tMKv7w1GxHmrkFIooputW6ec+RmR3SsIX+oRMikjaKTtA5lnNfrTU/RozZQzYW61ac 9rxbZcliaNSkUAz7DozcQ== 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:80672 Archived-At: Eli Zaretskii writes: > > That sounds good. Can we just do that? > > For some value of "we", yes. If "we" includes me and you, then it > will have to be you, as my plate is pretty much full these days, > sorry. In my defense, I can tell that this should be a nice exercise > for someone who wants to get accustomed to hacking the display engine, > as it shouldn't be too hard, and there's abundant example code that > does similar things. Sorry Eli, but I can't do it. I'm a real noob to C. > > 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. > > If not, i.e., if a face e.g. just underlines, I do want to color the > > text nevertheless. > > The face used by links is different not only in its underline, but > also in its color. If you want links to remain instantly > recognizable, you should probably keep their appearance intact > wholesale, not just the underline, otherwise how would the user > distinguish between a link and underlined text? Yes, that's what I actually do ;-) > > Probably I didn't understand what you meant. > > More probable that I didn't understand what you meant. Hopefully the > above tells enough about my misunderstanding to allow you to correct > me. I think that you thought that what I do is w3m specific, but it's not. It should work in any buffer, with any modes. And it should change the foreground color for every piece of text that has the default foreground color. Thanks, and regards, Michael.