From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64281 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug: Gnus uses face gnus-cite-1 for non-cited text Date: Wed, 07 Feb 2007 10:43:57 +0900 Organization: Emacsen advocacy group Message-ID: References: <87tzxzsenz.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1170812748 29109 80.91.229.12 (7 Feb 2007 01:45:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2007 01:45:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M12805@lists.math.uh.edu Wed Feb 07 02:45:40 2007 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.50) id 1HEbsR-0006Ba-B3 for ding-account@gmane.org; Wed, 07 Feb 2007 02:45:39 +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 1HEbr3-0007w3-8D; Tue, 06 Feb 2007 19:44:13 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HEbr1-0007vm-PK for ding@lists.math.uh.edu; Tue, 06 Feb 2007 19:44:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HEbqv-0003cu-IF for ding@lists.math.uh.edu; Tue, 06 Feb 2007 19:44:11 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HEbqu-0008GU-00 for ; Wed, 07 Feb 2007 02:44:04 +0100 Original-Received: from [66.225.201.151] (port=52339 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1HEbqx-0001ZH-G7 for ding@gnus.org; Tue, 06 Feb 2007 19:44:07 -0600 X-Hashcash: 1:20:070207:ding@gnus.org::/K7EywpURQFZRvgZ:000031WL X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:91IPbkQNuqyaVrkjooNa629hyiI= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64281 Archived-At: --=-=-= >>>>> In <87tzxzsenz.fsf@baldur.tsdh.de> Tassilo Horn wrote: > sometimes when I follow up and yank an article Gnus uses the wrong face > (gnus-cite-1) for my own, non-cited text. I made a screenshot of this > bug [1]. As you can see the whole paragraph starting with "Sorry" is > displayed with gnus-cite-1, whereas all my other paragraphs are > displayed with the default face. Showing the local value of `font-lock-keywords' in the message buffer and the value of `message-cite-prefix-regexp' would be helpful. In addition, have you changed the value of `message-cite-prefix-regexp' or added/removed some faces to/from `gnus-cite-face-list'? Currently the behavior of `gnus-message-citation-mode' is decided by those values as of time when Gnus is compiled. So, customizing those options will not affect the behavior, or it might cause a trouble if anything. Well, the following patch may possibly do the trick. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- gnus-cite.el~ 2007-01-24 07:12:47 +0000 +++ gnus-cite.el 2007-02-07 01:42:02 +0000 @@ -1126,10 +1126,12 @@ "\\)")) limit t) (let ((cdepth + (min (length (apply 'concat (split-string (match-string-no-properties 0) - "[ \t [:alnum:]]+")))) + "[ \t [:alnum:]]+"))) + gnus-message-max-citation-depth)) (mlist (make-list (* (1+ gnus-message-max-citation-depth) 2) 0))) --=-=-=--