From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#2459: 22.2.1: global-font-lock-mode does not turn off colors: ido.el, minibuffer prompt Date: Tue, 24 Feb 2009 21:56:52 +0200 Organization: JURTA Message-ID: <87k57fip6j.fsf@jurta.org> References: <871vtot5hx.fsf@jondo.cante.net> <87d4d7vdga.fsf@jondo.cante.net> Reply-To: Juri Linkov , 2459@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235507048 30168 80.91.229.12 (24 Feb 2009 20:24:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 20:24:08 +0000 (UTC) Cc: 2459@emacsbugs.donarmstrong.com To: Jari Aalto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 24 21:25:22 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lc3qD-0006ln-Jx for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 21:25:22 +0100 Original-Received: from localhost ([127.0.0.1]:53378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc3os-0007ke-NG for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 15:23:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lc3oc-0007bK-Lv for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2009 15:23:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lc3oa-0007Xx-Gk for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2009 15:23:41 -0500 Original-Received: from [199.232.76.173] (port=45483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc3oa-0007XY-2S for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2009 15:23:40 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43927) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lc3oZ-0003GW-H4 for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2009 15:23:39 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1OKNbri005863; Tue, 24 Feb 2009 12:23:37 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1OK55MB001230; Tue, 24 Feb 2009 12:05:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 24 Feb 2009 20:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2459 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2459-submit@emacsbugs.donarmstrong.com id=B2459.123550553831594 (code B ref 2459); Tue, 24 Feb 2009 20:05:05 +0000 Original-Received: (at 2459) by emacsbugs.donarmstrong.com; 24 Feb 2009 19:58:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1OJws4x031588 for <2459@emacsbugs.donarmstrong.com>; Tue, 24 Feb 2009 11:58:56 -0800 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1Lc3Qb-000FsM-7I; Tue, 24 Feb 2009 21:58:53 +0200 In-Reply-To: <87d4d7vdga.fsf@jondo.cante.net> (Jari Aalto's message of "Tue, 24 Feb 2009 21:31:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (x86_64-pc-linux-gnu) X-Scanner-Signature: bb9f355b5be917825c280d06cf0e20ab X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 24 Feb 2009 15:23:41 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25670 Archived-At: >>> After global-font-lock-mode is turned off: >>> - ido-mode still displays completions in color. >>> - Minibuffer prompt's text is still displayed in color. >> >> These features, and several other places that use colour, are not >> implemented using font-lock, so toggling global-font-lock-mode has no >> effect. In this specific case, you can set ido-use-faces and customize >> the minibuffer-prompt face. > > Perhaps those can be teach to obey global-font-lock-mode settings. > It is not feasible to have to configure those separately. Font-lock makes sense only for syntax-based highlighting. >> AFAIK there is no simple way to say "give me an entirely monochromatic >> Emacs". > > It used to. Something along the lines is a simple way to give a monochromatic Emacs. Perhaps we should create a new function that will do this depending on an option. (defun my-faces-fix (&optional frame) "Fix defined faces." (interactive) ;; Check if this function is called by `custom-define-hook' from ;; `custom-declare-face' where the variable `face' is bound locally. (when (boundp 'face) (dolist (face (face-list)) (unless (string-match "^mode-line" (symbol-name face)) ;; Reset all face attributes (modify-face face))))) ;; 1. Fix existing faces (let ((face t)) (my-faces-fix)) ;; 2. Call `my-faces-fix' every time some new face gets defined (add-to-list 'custom-define-hook 'my-faces-fix) -- Juri Linkov http://www.jurta.org/emacs/