From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Colour selection in shr Date: Tue, 04 Nov 2014 13:18:53 -0500 Message-ID: References: <8761ex10e0.fsf@rabkins.net> <87wq7cza1n.fsf@rabkins.net> <87d294ys7y.fsf@rabkins.net> <8738a0yo7k.fsf@rabkins.net> <87lhnryav0.fsf@rabkins.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415125160 21949 80.91.229.3 (4 Nov 2014 18:19:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 18:19:20 +0000 (UTC) Cc: Yoni Rabkin , emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 04 19:19:13 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XlihE-0006wa-TC for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 19:19:13 +0100 Original-Received: from localhost ([::1]:42223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlihE-0002Bd-Fq for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 13:19:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlih3-000292-L1 for emacs-devel@gnu.org; Tue, 04 Nov 2014 13:19:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xligw-0002eX-0s for emacs-devel@gnu.org; Tue, 04 Nov 2014 13:19:01 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:9948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xligv-0002eI-TF for emacs-devel@gnu.org; Tue, 04 Nov 2014 13:18:53 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBBwEBAQEekQgHhEsFi2SmPIFvhBYfgnoBAQE X-IPAS-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBBwEBAQEekQgHhEsFi2SmPIFvhBYfgnoBAQE X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95945086" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO ceviche.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Nov 2014 13:18:53 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 09A2C66099; Tue, 4 Nov 2014 13:18:53 -0500 (EST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 04 Nov 2014 16:53:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176356 Archived-At: > Again, I have no idea what you mean by that. How would you use > `font-lock-mode' to put colours on an HTML document based on CSS? I'm not suggesting to use font-lock-keywords to put the colors. I'm suggesting to use the `font-lock-mode' setting (a boolean variable) to decide whether to do highlighting or not. You could even do it dynamically/automatically by using the `font-lock-face' instead of the `face' property. Stefan