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: Turning off colorization Date: Wed, 05 Nov 2014 08:00:18 -0500 Message-ID: <87zjc5u7j1.fsf@rabkins.net> References: <874muenb56.fsf@newcastle.ac.uk> <87egtivwop.fsf@fencepost.gnu.org> <87k33951ey.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415192931 4289 80.91.229.3 (5 Nov 2014 13:08:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 13:08:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 14:08:44 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 1Xm0KK-0008Bx-9g for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 14:08:44 +0100 Original-Received: from localhost ([::1]:46325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm0KJ-0006eD-Rc for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 08:08:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm0Jz-0006cx-4f for emacs-devel@gnu.org; Wed, 05 Nov 2014 08:08:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm0Js-0002If-MY for emacs-devel@gnu.org; Wed, 05 Nov 2014 08:08:23 -0500 Original-Received: from smtprelay0193.hostedemail.com ([216.40.44.193]:42568 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm0Js-0002IX-Iu for emacs-devel@gnu.org; Wed, 05 Nov 2014 08:08:16 -0500 Original-Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave01.hostedemail.com (Postfix) with ESMTP id 0399A5AD7B for ; Wed, 5 Nov 2014 13:00:21 +0000 (UTC) Original-Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id C5E7E9EA11 for ; Wed, 5 Nov 2014 13:00:20 +0000 (UTC) X-Session-Marker: 796F6E69407261626B696E732E6E6574 X-HE-Tag: paper41_3d2b00edff237 X-Filterd-Recvd-Size: 2607 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 omf10.hostedemail.com (Postfix) with ESMTPA for ; Wed, 5 Nov 2014 13:00:20 +0000 (UTC) X-Ethics: Use GNU In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 05 Nov 2014 13:23:16 +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.193 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:176402 Archived-At: Lars Magne Ingebrigtsen writes: > Ted Zlatanov writes: > >> So maybe Emacs could offer a way to turn off colors without turning off >> syntax highlighting, at least in SHR. I think it would be generally >> useful, but don't know if and how it could work generally. > > Yeah. It seems like whenever somebody asks for stuff in this area, it's > always "make all those colours go away", not "make syntax highlighting > stop". For instance, I would assume that people would still want links > in eww to be underlined even if nothing colourful happens. > > So perhaps Emacs just needs another general setting here? `color-mode' > (or something). If that (buffer-local) variable is nil, redisplay would > simply ignore all foreground/background colour specs. > > This isn't really about syntax highlighting, but about how some people > prefer monochrome buffers, I think. That is a very good description of my personal needs. I even understand the physics of what's wrong (with me) but I can't speak to how many other people may or may not have this issue. So I can't say if we are solving a bigger problem or just making a big deal about my weird problem. I've set up Emacs to work for me and I'd like to be able to say to Eww: "please leave my background and foreground choices alone for text that wouldn't otherwise be decorated in any way" The shr-inhibit-coloration patch does exactly that, but I understand that there is some discussion as to how classify this type of change. As Wolfgang pointed out, font-lock isn't it since I still want font-locking. -- "Cut your own wood and it will warm you twice"