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: Turning off colorization Date: Wed, 05 Nov 2014 10:02:19 -0500 Message-ID: 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 1415199778 25354 80.91.229.3 (5 Nov 2014 15:02:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 15:02:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 16:02:51 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 1Xm26k-00033B-Qg for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 16:02:50 +0100 Original-Received: from localhost ([::1]:46860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm26k-0003V5-Cr for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 10:02:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm26P-0003Uw-Fd for emacs-devel@gnu.org; Wed, 05 Nov 2014 10:02:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm26I-0001fR-0N for emacs-devel@gnu.org; Wed, 05 Nov 2014 10:02:29 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:2935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm26H-0001cH-Se for emacs-devel@gnu.org; Wed, 05 Nov 2014 10:02:21 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWKAsLNBIUGA2IbwnLcgELIJEPFoQ1BYtkpjyBb4QWH4J6AQEB X-IPAS-Result: Au0MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWKAsLNBIUGA2IbwnLcgELIJEPFoQ1BYtkpjyBb4QWH4J6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96016606" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Nov 2014 10:02:19 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 95A1B7AB7; Wed, 5 Nov 2014 10:02:19 -0500 (EST) In-Reply-To: <87k33951ey.fsf@lifelogs.com> (Ted Zlatanov's message of "Wed, 05 Nov 2014 06:31:33 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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:176404 Archived-At: DK> Toggle syntax highlighting in this buffer (Font Lock mode). syntax-highlight-mode sounds like a very good alias for global-font-lock-mode. I'd welcome a patch which takes care of that. I don't think it's terribly important, tho, since most users don't really need to know how it's called since it's enabled by default. > Some color-blind or visually impaired people may want syntax > highlighting but not colorization. Indeed. IIRC, in the past, there was some kind of option in font-lock to choose between "use fonts -vs- use colors". > 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. That would be great, indeed. Someone posted a patch last year or so, that made it possible to tweak in Elisp the computation of faces (IIRC it was around the discussion of the fallback-background color, to try and dynamically compute the background face to use for the region, so that it's always visible). Maybe it could work that way. Stefan