From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Turning off colorization Date: Fri, 07 Nov 2014 17:40:40 +0200 Message-ID: <8361errpc7.fsf@gnu.org> References: <87a944cm3x.fsf@moondust.localdomain> <83r3xfs8mx.fsf@gnu.org> <92fcc04e-6837-4038-83bf-0a2583bae2ef@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415374878 9246 80.91.229.3 (7 Nov 2014 15:41:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 15:41:18 +0000 (UTC) Cc: nljlistbox2@gmail.com, rms@gnu.org, drew.adams@oracle.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 07 16:41:10 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 1Xmleu-0008TG-2m for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 16:41:08 +0100 Original-Received: from localhost ([::1]:60748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmlet-000526-NA for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2014 10:41:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmlek-0004vx-TG for emacs-devel@gnu.org; Fri, 07 Nov 2014 10:41:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xmlee-0003W9-Ox for emacs-devel@gnu.org; Fri, 07 Nov 2014 10:40:58 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:50753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmlee-0003Vt-Gj; Fri, 07 Nov 2014 10:40:52 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NEO00G00DCP0W00@mtaout29.012.net.il>; Fri, 07 Nov 2014 17:39:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEO00F96E5GBO30@mtaout29.012.net.il>; Fri, 07 Nov 2014 17:39:16 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:176531 Archived-At: > From: Stefan Monnier > Date: Fri, 07 Nov 2014 10:28:51 -0500 > Cc: nljlistbox2@gmail.com, Eli Zaretskii , rms@gnu.org, > emacs-devel@gnu.org > > >> Not every face that defines a color is controlled by font-lock. > > No, but font-lock-mode is the standard way to control whether or not > a buffer is colorized/highlighted. We introduced font-lock-face > specifically so that font-lock-mode can also be used for the case where > the highlighting is actually not applied via the usual > font-lock-keywords method. But we ourselves are inconsistent in this respect. E.g., file-name-shadow-mode does its thing disregarding font-lock. So what you describe might be your aspiration (which I'm not sure I share), but it certainly isn't adhered enough in core Emacs itself. More generally, turning off font-lock certainly won't turn colors globally in the entire Emacs display, because there are elements, like window decorations and menus, which are not derived from buffer text, and therefore cannot possibly be controlled by font-lock. If we want a single command to turn off all colors, we cannot use font-lock for that.