Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: gnus-message-citation-mode resets font-lock
Date: Thu, 08 Mar 2012 16:48:07 +0900	[thread overview]
Message-ID: <b4mk42vcz48.fsf@jpl.org> (raw)
In-Reply-To: <20120308055725.6481E1FDDF@saturn.ch.ristopher.com>

Christopher Schmidt wrote:
> Hey gurus,

> I have a problem with Ma Gnus v0.3 (I am using the tagged one from git
> repo) on GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version
> 2.24.9) of 2012-03-08.

> Recipe:

> emacs -q
> eval:
> (setq gnus-select-method '(nnnil "")
>       mail-user-agent 'gnus-user-agent)
> (add-hook 'message-mode-hook
>       (lambda ()
>         (whitespace-mode 1)))
> C-x m # whitespace mode works - note the red marker on the space after
> `Subject'
> M-x gnus RET
> C-x m # the marker is gone :(

Use `gnus-message-setup-hook' instead of `message-mode-hook', and
`whitespace-mode' should work.

> Long story short, this bug is caused by gnus-message-citation-mode doing
> some crazy font-lock stuff.  In particular that

> (setq font-lock-set-defaults nil)
> (font-lock-set-defaults)

> in gnus-cite.el:1261 causes the trouble.

This is what I did five years ago, and was necessary to make
the value of `gnus-message-citation-keywords' reflect to font-lock.
It is to replace existing font-lock keywords, but TRT will probably
be to merge.  Though I have neither an idea nor time now, I'd like
to fix it some day.



      reply	other threads:[~2012-03-08  7:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08  5:57 Christopher Schmidt
2012-03-08  7:48 ` Katsumi Yamaoka [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mk42vcz48.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.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 NNTP newsgroup(s).