unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Giving up on colors, I need help
Date: Fri, 22 Feb 2013 23:07:34 +0100	[thread overview]
Message-ID: <87ehg8ngt5.fsf@wanadoo.es> (raw)
In-Reply-To: jwv1uc8vz80.fsf-monnier+gmane.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Back in 2007 I did (global-font-lock-mode 0), but that stopped working
>> years ago.
>
> emacs -Q --eval '(global-font-lock-mode 0)' ~/tmp/foo.el
>
> shows the text in black-on-white with no funny colors, so if
> (global-font-lock-mode 0) doesn't work for you, it must be because of
> some other customization you have which triggers a bug (e.g. loading
> a brain-dead package which thinks it's a good idea to call
> (global-font-lock-mode 1)).

I tried some of the methods described by the OP, and they work *after*
the file is visited, but starting with emacs -Q and evaluating this on
*scratch*:

(defun foo ()
  (message "hook")
  (global-font-lock-mode nil))

(add-hook 'c++-mode-hook 'foo)


then visiting a C++ file, the text is colorized. At that point,

M-x global-font-lock-mode

and the colors go away, but

M-x revert-buffer

colorizes the text again.

> IOW, I recommend you M-x report-emacs-bug RET

Yes, it is a glaring bug.




  reply	other threads:[~2013-02-22 22:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-22 18:27 Giving up on colors, I need help William D. Colburn (Schlake)
2013-02-22 21:05 ` Stefan Monnier
2013-02-22 22:07   ` Óscar Fuentes [this message]
2013-02-22 22:19     ` Stefan Monnier
2013-02-22 22:32       ` William D. Colburn (Schlake)

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=87ehg8ngt5.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).