From: Juri Linkov <juri@jurta.org>
To: Jari Aalto <jari.aalto@cante.net>
Cc: 2459@emacsbugs.donarmstrong.com
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 [thread overview]
Message-ID: <87k57fip6j.fsf@jurta.org> (raw)
In-Reply-To: <87d4d7vdga.fsf@jondo.cante.net> (Jari Aalto's message of "Tue, 24 Feb 2009 21:31:49 +0200")
>>> 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/
next prev parent reply other threads:[~2009-02-24 19:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 11:54 bug#2459: 22.2.1: global-font-lock-mode does not turn off colors: ido.el, minibuffer prompt Jari Aalto
2009-02-24 18:17 ` Glenn Morris
2009-02-24 18:30 ` Processed: " Emacs bug Tracking System
2009-02-24 19:31 ` Jari Aalto
2009-02-24 19:56 ` Juri Linkov [this message]
2009-02-25 15:53 ` Richard M Stallman
2009-02-25 16:49 ` Stefan Monnier
2009-02-25 17:24 ` bug#2459: 22.2.1: global-font-lock-mode does not turn off colors:ido.el, " Drew Adams
2009-02-26 14:16 ` Jari Aalto
2009-02-26 19:25 ` Richard M Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k57fip6j.fsf@jurta.org \
--to=juri@jurta.org \
--cc=2459@emacsbugs.donarmstrong.com \
--cc=jari.aalto@cante.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).