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: Mon, 03 Nov 2014 16:21:51 -0500 Message-ID: <8738a0yo7k.fsf@rabkins.net> References: <8761ex10e0.fsf@rabkins.net> <87wq7cza1n.fsf@rabkins.net> <87d294ys7y.fsf@rabkins.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415049737 29560 80.91.229.3 (3 Nov 2014 21:22:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 21:22:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 03 22:22:09 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 1XlP4j-0003FS-NE for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 22:22:09 +0100 Original-Received: from localhost ([::1]:37411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlP4j-0008O9-2l for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 16:22:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlP4Z-0008O1-NH for emacs-devel@gnu.org; Mon, 03 Nov 2014 16:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlP4T-0002On-G8 for emacs-devel@gnu.org; Mon, 03 Nov 2014 16:21:59 -0500 Original-Received: from smtprelay0202.hostedemail.com ([216.40.44.202]:59102 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlP4T-0002Ob-CK for emacs-devel@gnu.org; Mon, 03 Nov 2014 16:21:53 -0500 Original-Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id C0B182363C for ; Mon, 3 Nov 2014 21:21:52 +0000 (UTC) X-Session-Marker: 796F6E69407261626B696E732E6E6574 X-HE-Tag: flesh77_67a9559611a49 X-Filterd-Recvd-Size: 1730 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 omf06.hostedemail.com (Postfix) with ESMTPA for ; Mon, 3 Nov 2014 21:21:52 +0000 (UTC) X-Ethics: Use GNU In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 03 Nov 2014 22:10:24 +0100") 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.202 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:176317 Archived-At: Lars Magne Ingebrigtsen writes: > Yoni Rabkin writes: > >> A patch to shr.el won't work. When called through Eww, title tags are >> colorized by shr.el but body tags are colored by eww.el. So turning off >> colorization in shr.el would still leave `eww-colorize-region' in eww >> working. > > I don't know what you mean by "title tags" and "body tags" here. > > Anyway, eww can do stuff based on shr settings. A defcustom in shr.el which stops shr from coloring stuff won't make eww stop coloring everything. This is because eww.el:eww-colorize-region colors stuff independently of shr. To repeat: eww.el:eww-colorize-region is eww's own private copy of shr.el:shr-colorize-region. -- "Cut your own wood and it will warm you twice"