From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Turning off colorization Date: Wed, 05 Nov 2014 13:55:11 +0100 Message-ID: <87h9yd7qog.fsf@thinkpad-t440p.tsdh.org> 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 1415192161 24000 80.91.229.3 (5 Nov 2014 12:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 12:56:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 13:55:54 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 1Xm07u-0001Lm-6B for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 13:55:54 +0100 Original-Received: from localhost ([::1]:46111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm07t-0001yK-Nu for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 07:55:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm07K-0001yB-V4 for emacs-devel@gnu.org; Wed, 05 Nov 2014 07:55:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm07E-0006Cg-Jq for emacs-devel@gnu.org; Wed, 05 Nov 2014 07:55:18 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:33724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm07E-0006Ca-EI for emacs-devel@gnu.org; Wed, 05 Nov 2014 07:55:12 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D8E2C1A83FC; Wed, 5 Nov 2014 13:55:11 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IRV21FuzL8x9; Wed, 5 Nov 2014 13:55:11 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p.tsdh.org (dhcp133.uni-koblenz.de [141.26.71.133]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 78CCF1A83F4; Wed, 5 Nov 2014 13:55:11 +0100 (CET) Mail-Followup-To: Lars Magne Ingebrigtsen , emacs-devel@gnu.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 05 Nov 2014 13:23:16 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 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:176399 Archived-At: Lars Magne Ingebrigtsen 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. The problem is that standard emacs faces seem to use only colors to disambiguate stuff. E.g., I've just visited an elisp file with emacs -Q and keywords, functions, strings, and comments are displayed with the very same font and attributes except for different foreground colors. So simply stripping color specs would be equivalent to disabling font-lock-mode altogether at least for elisp mode. That's why I've suggested we might want to have a `no-colors' theme, a `red-green-blind' theme that either use no colors but other face attributes, or only a restricted set of colors, respectively. Well, and somehow those themes would need to adjust new faces as they appear, e.g., when a third-party package is loaded, too. Bye, Tassilo