From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40806 Path: main.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Emphasis in headers Date: Tue, 11 Dec 2001 00:44:06 +0900 Sender: owner-ding@hpc.uh.edu Message-ID: <13ffa140-4a95-49ee-94d2-60f92af660ff@deisui.bug.org> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176301 2869 80.91.224.250 (21 Oct 2002 04:58:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:58:21 +0000 (UTC) Return-Path: Original-Received: (qmail 7018 invoked from network); 10 Dec 2001 15:42:14 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 10 Dec 2001 15:42:14 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16DSYn-0007eq-00; Mon, 10 Dec 2001 09:41:41 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 10 Dec 2001 09:41:29 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA28230 for ; Mon, 10 Dec 2001 09:41:15 -0600 (CST) Original-Received: (qmail 7009 invoked by alias); 10 Dec 2001 15:41:21 -0000 Original-Received: (qmail 7004 invoked from network); 10 Dec 2001 15:41:21 -0000 Original-Received: from g96069.scn-net.ne.jp (HELO deisui.bug.org) (210.231.96.69) by gnus.org with SMTP; 10 Dec 2001 15:41:21 -0000 Original-Received: from deisui.bug.org (localhost [127.0.0.1]) by deisui.bug.org (8.12.1/8.12.1/Debian -3) with ESMTP id fBAFi6Vp009853 for ; Tue, 11 Dec 2001 00:44:07 +0900 X-Now-Playing: King Crimson's _Thrak_: "Coda: Marine 475" Original-To: ding@gnus.org X-Face: ki?-"~Ovqy(#SEZ2FpdUK,3>)p.@}$.vl{eIZ-Uy43$&[S1#'y{hX&A3T@xA)u0!_4Lg.vA ^{d(.VU0(X#Zf,~9Kha_$nl7W/(b9r;]%_&:OUA@g0LF'S2<%~T Original-Lines: 32 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40806 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40806 Hi, I tried to emphasize an article which has an X-Now-Playing header by setting gnus-treat-emphasize to 'head. The album name ("Thrak" in this mail), however, is not underlined even then I hit `t' to show all headers. Here is a small patch to gnus-article-emphasize. Index: gnus-art.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v retrieving revision 6.122 diff -u -F^( -r6.122 gnus-art.el --- gnus-art.el 2001/12/07 15:13:32 6.122 +++ gnus-art.el 2001/12/10 15:14:01 @@ -2510,8 +2510,9 @@ (defun article-emphasize (&optional arg) (match-beginning invisible) (match-end invisible) props) (gnus-article-unhide-text-type (match-beginning visible) (match-end visible) 'emphasis) - (gnus-put-text-property-excluding-newlines - (match-beginning visible) (match-end visible) 'face face) + (gnus-overlay-put (gnus-make-overlay (match-beginning visible) + (match-end visible)) + 'face face) (push 'emphasis gnus-article-wash-types) (goto-char (match-end invisible))))))))) Regards, -- Daiki Ueno