From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64308 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Fix gnus-message-citation-mode for (S)XEmacs Date: Tue, 13 Feb 2007 21:46:09 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171370891 17700 80.91.229.12 (13 Feb 2007 12:48:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2007 12:48:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M12832@lists.math.uh.edu Tue Feb 13 13:48:05 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 1HGx4m-00047o-Ey for ding-account@gmane.org; Tue, 13 Feb 2007 13:48:04 +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 1HGx3d-0006v9-MZ; Tue, 13 Feb 2007 06:46:53 -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 1HGx3c-0006ut-6v for ding@lists.math.uh.edu; Tue, 13 Feb 2007 06:46:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HGx3V-0000Du-5w for ding@lists.math.uh.edu; Tue, 13 Feb 2007 06:46:52 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HGx3U-0007zj-00 for ; Tue, 13 Feb 2007 13:46:44 +0100 Original-Received: from [218.118.2.103] (port=63363 helo=) by washington.hostforweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HGx33-0002sX-Tq for ding@gnus.org; Tue, 13 Feb 2007 06:46:18 -0600 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:DOOdPXBIVFjKsZhU/AXYI7GJvp4= 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 - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64308 Archived-At: >>>>>> In Dave Goldberg wrote: >> but I do appear to be getting at least the same fontification I had >> before this update. >>>>> In Katsumi Yamaoka wrote: > I have the same problem as yours with the home pc. I seem to have solved this problem. Could you try it? Formerly `gnus-message-citation-mode' modified the value of `font-lock-keywords' directly. However, the value is determined according to the value of `font-lock-defaults' normally and the variables listed in `font-lock-defaults' don't have the keywords for `gnus-message-citation-mode'. So, it is possible that `gnus-message-citation-mode' is invalidated if some program[1] resets font-lock-keywords' according to `font-lock-defaults' for some purpose or a user resets it in order to apply the value of `message-font-lock-keywords' that a user customized using `gnus-message-setup-hook'[2] for example. I've made changes to make `gnus-message-citation-mode' work in the different way. Now `message-font-lock-keywords' is buffer local in message buffers and gains the elements of `gnus-message-citation-keywords'. `font-lock-add-keywords' and `font-lock-remove-keywords' are no longer used. [1] At least develock.el does it. [2] Take care not to disregard the values added to `message-font-lock-keywords' by `gnus-message-citation-mode' if you do something in `gnus-message-setup-hook'. Regards,