From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15499 Path: news.gmane.org!not-for-mail From: Peter Anderson Newsgroups: gmane.emacs.gnus.user Subject: Coloring pieces of messages in Gnus Date: Fri, 11 May 2012 13:23:03 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336768676 17332 80.91.229.3 (11 May 2012 20:37:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 May 2012 20:37:56 +0000 (UTC) To: info-gnus-English@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri May 11 22:37:55 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSwb0-0007Iw-IU for gegu-info-gnus-english@m.gmane.org; Fri, 11 May 2012 22:37:50 +0200 Original-Received: from localhost ([::1]:46995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSwaz-0000cX-Mp for gegu-info-gnus-english@m.gmane.org; Fri, 11 May 2012 16:37:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SStYc-0008Nc-0l for info-gnus-English@gnu.org; Fri, 11 May 2012 13:23:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SStYa-0007p3-EY for info-gnus-English@gnu.org; Fri, 11 May 2012 13:23:09 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:49166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SStYa-0007oB-AG for info-gnus-English@gnu.org; Fri, 11 May 2012 13:23:08 -0400 Original-Received: by yenm7 with SMTP id m7so3557917yen.0 for ; Fri, 11 May 2012 10:23:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:x-gm-message-state; bh=ObPceaXoMOniW67OUgpevP55lbpINzDUWzdoslniWVw=; b=Tw+1Yv+sgIsEUbUagoOi12GjNKaV0TLPDNjAt9mbsnBf2OmiSkS+JundPQWoLXe4YH emF7xdePjfUMdwie6MEH5NxYEDilbzKAQOlp1YoiTFimXsFvWYH6RxMY8Udyxv4cOGZc Ya205YoDpuFXDpzURLQIqsItNbrM/sl3utANkOlLDps6GZJr1h4zhnuouVuXGNryBEV9 mcdYM5b8tdcyCgH1/XN5SnXVr+E2k2hig1pmo9KqWTk66VRWPrjN0ehJ+4LWtYpoZocL 23isnSt6ZiUuj+XJCxxzJ1cKoSBa8T/pLfqexU0fooSIGF3SkciimKmN8/D8kCeM5CxT KdxA== Original-Received: by 10.236.78.37 with SMTP id f25mr7542342yhe.114.1336756986165; Fri, 11 May 2012 10:23:06 -0700 (PDT) Original-Received: from localhost (roo.tss.usg.edu. [168.24.82.51]) by mx.google.com with ESMTPS id x7sm30138785yhm.7.2012.05.11.10.23.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 May 2012 10:23:05 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Gm-Message-State: ALoCoQkmyNsE5HJVq9HO/27uolsSy1GfyjRLibhk0/5M3MYQ1MLDMaUd0qVL2umr8NfdADY0fMe2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 X-Mailman-Approved-At: Fri, 11 May 2012 16:37:48 -0400 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15499 Archived-At: I'm a noob. I've looked around and think I've found parts of the answer but can't find any good examples. I want to use a regex to change the color of some aspects of articles. I have a group called git-commit. For articles in that group I would like any line that starts with "---" to be red and any line that starts with "+++" to be green. (the whole line) Another group has Help-desk tickets in it and it will have line similar to: blah blah blah Assigned: Peter I want to be able to make the word following "Assigned:" (in this case "Peter") stand out by changing its color or some attribute. I think I need to define a function and then use gnus-part-display-hook but the syntax of it all has eluded me so far. Thanks so much, Peter