From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75713 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Display fontification Date: Wed, 19 Jan 2011 22:06:10 +0100 Message-ID: <877he0bo3h.fsf@marauder.physik.uni-ulm.de> References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295472260 19291 80.91.229.12 (19 Jan 2011 21:24:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2011 21:24:20 +0000 (UTC) Cc: ding@gnus.org To: Nicolas Martyanoff Original-X-From: ding-owner+M24064@lists.math.uh.edu Wed Jan 19 22:24:13 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PffVj-0005GK-CI for ding-account@gmane.org; Wed, 19 Jan 2011 22:24:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PffVd-00081S-5U; Wed, 19 Jan 2011 15:24:05 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PffVb-00081H-UZ for ding@lists.math.uh.edu; Wed, 19 Jan 2011 15:24:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PffVa-0002P5-5o for ding@lists.math.uh.edu; Wed, 19 Jan 2011 15:24:03 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PffVY-0002Op-TA for ding@gnus.org; Wed, 19 Jan 2011 22:24:00 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id p0JLNvxe021945; Wed, 19 Jan 2011 22:23:58 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id A7FD810863; Wed, 19 Jan 2011 22:23:57 +0100 (CET) X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75713 Archived-At: On Wed, Jan 19 2011, Nicolas Martyanoff wrote: > I regularly receive mails generated by a git hook, each one containing > the diff of a commit. I'd like to display the diff with syntax > highlighting, but can't find how. > > The manual tells about mm-inline-media-tests, but it seems to work only > for attachment. Here the diff is in the body of message. Ideally, I'd > like to be able to specify a user-provided function which analyze the > message, and tell gnus to use the diff faces to highlight the body. > > Is there a way to do that ? Try adding the group name to `mm-uu-diff-groups-regexp': ,----[ v mm-uu-diff-groups-regexp RET ] | mm-uu-diff-groups-regexp is a variable defined in `mm-uu.el'. | Its value is | "gmane\\..*\\(diff\\|commit\\|cvs\\|bug\\|devel\\)" | | | Documentation: | Regexp matching diff groups. | | You can customize this variable. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/