Gnus development mailing list
 help / color / mirror / Atom feed
* How *not* to highlight
@ 1996-10-08 19:51 Juliusz Chroboczek
  1996-10-08 22:23 ` Per Abrahamsen
  1996-10-10 22:30 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Juliusz Chroboczek @ 1996-10-08 19:51 UTC (permalink / raw)


Hello,

I was thinking how to keep Gnus from highlighting when some face stuff
has already been done, e.g. by a MIME decoder.  The problem is that if
the preprocessor changed some faces, then the Gnus highlighting
functions will just undo its work.

What I currently do is to check in the function
gnus-article-maybe-highlight whether

   (text-property-not-all (point-min) (point-max) 'face nil)

in the article buffer.  If it is the case, no highlighting is done.

Of course, this is not the right approach.  This means that if a face
has been changed, say, in the body of the article, then neither the
headers nor the signature will be highlighted.  Furthermore, it does
not inhibit spurious highlighting in the summary buffer.

I've thought about doing a similar check in the function
`gnus-add-text-properties', but then any function that sets text
faces would have to make sure that those will not be overridden
later.  Or should I add a function `gnus-set-text-face', which would
be called by all the highlighting functions?

By the way, I believe that this modification should find its way into
the distribution of Gnus.  It does not cost much, and as highlighting
is only there for esthetics, a preprocessor should be able to override
it.

Just if you're interested: I need this for some character set support
that I've added to TM and RMIME.  Feel free to browse

    http://www.dcs.ed.ac.uk/home/jec/charset/


                                        J. Chroboczek


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-10-10 22:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-08 19:51 How *not* to highlight Juliusz Chroboczek
1996-10-08 22:23 ` Per Abrahamsen
1996-10-09 18:14   ` Juliusz Chroboczek
1996-10-10 22:30 ` Lars Magne Ingebrigtsen

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).