* Gnus color highlighting
@ 2007-05-23 3:48 cothrige
2007-05-23 6:40 ` Tim X
0 siblings, 1 reply; 5+ messages in thread
From: cothrige @ 2007-05-23 3:48 UTC (permalink / raw)
To: help-gnu-emacs
I recently started using Gnus for news reading, switching from slrn, and
have been rather pleased. However, one thing which I have found to be
odd, and haven't been able to sort out with searches, is the color
highlighting in the article buffer. If there is a quoted line it will
be a different color than the normal text, as one would expect. But,
only if it begins with exactly one '>'. If there are more than that,
then there is no syntax highlighting at all.
Personally, I would like to have all the lines beginning with '>' to be
highlighted, such as other readers would do. How can this be
accomplished? I am certain that I am simply overlooking something
obvious, but after plowing through page after page on google, I am ready
to seek advice.
Many thanks,
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus color highlighting
2007-05-23 3:48 Gnus color highlighting cothrige
@ 2007-05-23 6:40 ` Tim X
2007-05-23 9:25 ` Katsumi Yamaoka
2007-05-23 15:43 ` cothrige
0 siblings, 2 replies; 5+ messages in thread
From: Tim X @ 2007-05-23 6:40 UTC (permalink / raw)
To: help-gnu-emacs
cothrige <cothrige@yahoo.com> writes:
> I recently started using Gnus for news reading, switching from slrn, and
> have been rather pleased. However, one thing which I have found to be
> odd, and haven't been able to sort out with searches, is the color
> highlighting in the article buffer. If there is a quoted line it will
> be a different color than the normal text, as one would expect. But,
> only if it begins with exactly one '>'. If there are more than that,
> then there is no syntax highlighting at all.
>
> Personally, I would like to have all the lines beginning with '>' to be
> highlighted, such as other readers would do. How can this be
> accomplished? I am certain that I am simply overlooking something
> obvious, but after plowing through page after page on google, I am ready
> to seek advice.
>
> Many thanks,
>
What version of gnus and emacs are you running?
>From memory, earlier versions of gnus required a bit of hackery to get
highlighting to work consistently - in fact, I think it use to define its own
faces as well.
I'm running emacs 22 and the gnus which comes with it. I get all quoted lines
highlighted, with a different colour based on the number of >'s. This is out of
the box, no customization.
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus color highlighting
2007-05-23 6:40 ` Tim X
@ 2007-05-23 9:25 ` Katsumi Yamaoka
2007-05-23 16:20 ` cothrige
2007-05-23 15:43 ` cothrige
1 sibling, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2007-05-23 9:25 UTC (permalink / raw)
To: help-gnu-emacs
Folks, please go to the proper newsgroup. I added the Followup-To
header to this article.
>>>>> In <87y7jgavqn.fsf@lion.rapttech.com.au> Tim X wrote:
> cothrige <cothrige@yahoo.com> writes:
>> If there is a quoted line it will be a different color than the
>> normal text, as one would expect. But, only if it begins with
>> exactly one '>'. If there are more than that, then there is no
>> syntax highlighting at all.
> What version of gnus and emacs are you running?
There are various versions of No Gnus that are all labeled with
"No Gnus v0.6". In particular, the released No Gnus v0.5 says
it is "No Gnus v0.6". To see what kind of No Gnus v0.6 you use,
look into the lisp/ChangeLog file. Though, no major change about
highlighting of citations in the article buffer has been done
recently, as far as I know.
If you've modified the value of the `message-cite-prefix-regexp',
it will occur. But you haven't done it, have you?
There are two possible causes: one is that the number of citation
lines that are not highlighted is less than the value of the
`gnus-cite-minimum-match-count' variable (of which the default
value is 2); the other is that highlighted lines use the face of
which the color is the same as that of the default face. For the
former, put the following line in your ~/.gnus.el file:
(setq gnus-cite-minimum-match-count 1)
For the later, changing the order of the faces might help. I
have the following snippet in my ~/.gnus.el file:
(setq gnus-cite-face-list
(mapcar (lambda (n) (intern (format "gnus-cite-%s" n)))
'(3 7 2 6 4 5 8 9 10 11 1)))
Of course, you can change the colors of the gnus-cite-1,
gnus-cite-2, gnus-cite-3... faces.
Regards,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus color highlighting
2007-05-23 6:40 ` Tim X
2007-05-23 9:25 ` Katsumi Yamaoka
@ 2007-05-23 15:43 ` cothrige
1 sibling, 0 replies; 5+ messages in thread
From: cothrige @ 2007-05-23 15:43 UTC (permalink / raw)
To: help-gnu-emacs
Tim X <timx@nospam.dev.null> writes:
>
> What version of gnus and emacs are you running?
>
> From memory, earlier versions of gnus required a bit of hackery to get
> highlighting to work consistently - in fact, I think it use to define its own
> faces as well.
>
> I'm running emacs 22 and the gnus which comes with it. I get all quoted lines
> highlighted, with a different colour based on the number of >'s. This is out of
> the box, no customization.
I am running Debian Etch and so have 21.4a+1-3 shown as the version,
with Gnus reported as 5.11+v0.5.dfsg-3. I am guessing that this is old
enough to cause the problems you are speaking of.
>
> Tim
>
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus color highlighting
2007-05-23 9:25 ` Katsumi Yamaoka
@ 2007-05-23 16:20 ` cothrige
0 siblings, 0 replies; 5+ messages in thread
From: cothrige @ 2007-05-23 16:20 UTC (permalink / raw)
To: help-gnu-emacs
On 2007-05-23, Katsumi Yamaoka <yamaoka@jpl.org> wrote:
>
> If you've modified the value of the `message-cite-prefix-regexp',
> it will occur. But you haven't done it, have you?
Nope, I haven't fiddled with any variables right now. It would still
be the default.
> There are two possible causes: one is that the number of citation
> lines that are not highlighted is less than the value of the
> `gnus-cite-minimum-match-count' variable (of which the default
> value is 2); the other is that highlighted lines use the face of
> which the color is the same as that of the default face. For the
> former, put the following line in your ~/.gnus.el file:
>
> (setq gnus-cite-minimum-match-count 1)
This is showing as 2 right now.
> For the later, changing the order of the faces might help. I
> have the following snippet in my ~/.gnus.el file:
>
> (setq gnus-cite-face-list
> (mapcar (lambda (n) (intern (format "gnus-cite-%s" n)))
> '(3 7 2 6 4 5 8 9 10 11 1)))
At this point, I find that the problem is not what I thought. In
looking at trying this out I realize that the fault is not in gnus,
which is actually working fine, but rather it is because I usually run
emacs in a screen session, and that is seeming to mess with my
colors. Any thoughts on what may be causing that?
>
> Of course, you can change the colors of the gnus-cite-1,
> gnus-cite-2, gnus-cite-3... faces.
>
> Regards,
Many thanks,
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-23 16:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 3:48 Gnus color highlighting cothrige
2007-05-23 6:40 ` Tim X
2007-05-23 9:25 ` Katsumi Yamaoka
2007-05-23 16:20 ` cothrige
2007-05-23 15:43 ` cothrige
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).