From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yoni Rabkin Newsgroups: gmane.emacs.devel Subject: Re: Colour selection in shr Date: Tue, 04 Nov 2014 19:53:39 -0500 Message-ID: <87h9yev564.fsf@rabkins.net> 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 1415148849 15174 80.91.229.3 (5 Nov 2014 00:54:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 00:54:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 01:54:02 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 1XlorI-0001fZ-4I for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 01:54:00 +0100 Original-Received: from localhost ([::1]:43567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlorH-00047H-IX for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 19:53:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlor6-0003xp-Ga for emacs-devel@gnu.org; Tue, 04 Nov 2014 19:53:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xloqz-0005aW-R2 for emacs-devel@gnu.org; Tue, 04 Nov 2014 19:53:48 -0500 Original-Received: from smtprelay0127.hostedemail.com ([216.40.44.127]:50546 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xloqz-0005Zw-LR for emacs-devel@gnu.org; Tue, 04 Nov 2014 19:53:41 -0500 Original-Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id D1CEF2691D1 for ; Wed, 5 Nov 2014 00:53:40 +0000 (UTC) X-Session-Marker: 796F6E69407261626B696E732E6E6574 X-HE-Tag: meal59_7761f04c0234f X-Filterd-Recvd-Size: 1951 Original-Received: from yrk-ThinkPad-T410.rabkins.net (c-75-69-93-148.hsd1.nh.comcast.net [75.69.93.148]) (Authenticated sender: yoni@rabkins.net) by omf05.hostedemail.com (Postfix) with ESMTPA for ; Wed, 5 Nov 2014 00:53:40 +0000 (UTC) X-Ethics: Use GNU In-Reply-To: (Stefan Monnier's message of "Tue, 04 Nov 2014 13:18:53 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.40.44.127 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:176365 Archived-At: Stefan Monnier writes: >> 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. Doesn't that mean I have to set font-lock-mode to nil in each buffer which uses shr/eww? I thought that font-lock-mode is buffer local, and what I'm looking for is to disable colorization in any future use of shr/eww in my emacs instance. -- "Cut your own wood and it will warm you twice"