From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paul W. Rankin" Newsgroups: gmane.emacs.devel Subject: Re: Turning off colorization Date: Sun, 09 Nov 2014 14:14:02 +1000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415543246 19128 80.91.229.3 (9 Nov 2014 14:27:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2014 14:27:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 09 15:27:20 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 1XnTSW-00036U-Lg for ged-emacs-devel@m.gmane.org; Sun, 09 Nov 2014 15:27:16 +0100 Original-Received: from localhost ([::1]:38973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnTSW-0000sz-85 for ged-emacs-devel@m.gmane.org; Sun, 09 Nov 2014 09:27:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnJtF-0004ZY-6E for emacs-devel@gnu.org; Sat, 08 Nov 2014 23:14:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnJtA-00056j-1c for emacs-devel@gnu.org; Sat, 08 Nov 2014 23:14:13 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:44550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnJt9-00056d-Qw for emacs-devel@gnu.org; Sat, 08 Nov 2014 23:14:07 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id F2D6220531; Sat, 8 Nov 2014 23:14:05 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sat, 08 Nov 2014 23:14:06 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=x-sasl-enc:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=iPQnl90DNG9V SAmtN7vJA2YhSz8=; b=F5+RS8PUf0LMQRQ4GHp15UDmApzObbpFFbtRpkNmloi4 kzkPO8G8KbY2nFqPGbd0fkThXuTmC4pLkt0dhPOezO9jJN5WlomgJapFUNl0D0fU 0lZPrpWqLux2ZWXwvVJ9M/9x9pCm4lh8u2sxnbcaElL34wEuunK/RB5ysTfcI5w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=iPQnl90DNG9VSAmtN7vJA2YhSz8=; b=trOOR7/UbwRphquF6kUj eP1FKaefynG3JqS8Yj+7ZTHoBNxGbuEaV0B1R3zoU+DrPOinNJJCHt18fAxBYeEP YZageJrgE4Ahjqy8s/lPjc89JIR/4rDRtVBL7Bm10rEHfRlPsJTZKLXT4dMQiO+g lGOs0/EgeYgtVf2Sol1/Dm4= X-Sasl-enc: XI8jtV+niO8hRojTHWTFcE5HoXCLfx52SMcH7ckCBN/C 1415506445 Original-Received: from Paul-Rankins-MacBook-Pro.local (unknown [202.0.190.43]) by mail.messagingengine.com (Postfix) with ESMTPA id 64A81C0000A; Sat, 8 Nov 2014 23:14:04 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Tue, 04 Nov 2014 11:43:13 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.26 X-Mailman-Approved-At: Sun, 09 Nov 2014 09:27:04 -0500 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:176622 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > M-x font-lock-mode will turn off colorization, but it's not a name > that will come to a user's mind very easily. How about making > colorize-mode an alias for font-lock-mode? > > Also, how about putting it in the Options menu? I develop a package that uses font-lock-mode extensively for coloured syntax highlighting but also line-prefix, wrap-prefix and invisible text properties. I also use font-lock-mode to manage a "element" text property that is integral to the mode. If a user disabled something called "colorize-mode" thinking it would merely make the colours disappear, he/she might be unpleasantly surprised to see many things vanish/break also. Am I doing something wrong in using font-lock-mode to manage these text properties? I tried to follow the docs to the letter. For users wanting non-coloured text I have multiple levels of highlighting as per the documentation regarding font-lock-maximum-decoration. Is the solution to this not more along the lines of a more accessible font-lock-maximum-decoration? I think that many major modes do not support multi-level font-lock-keywords, but in my view they ought to. -- Paul W. Rankin http://www.paulwrankin.com