From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81524 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-message-citation-mode resets font-lock Date: Thu, 08 Mar 2012 16:48:07 +0900 Organization: Emacsen advocacy group Message-ID: References: <20120308055725.6481E1FDDF@saturn.ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1331192965 18377 80.91.229.3 (8 Mar 2012 07:49:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2012 07:49:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29804@lists.math.uh.edu Thu Mar 08 08:49:24 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S5Y6A-0002H7-OH for ding-account@gmane.org; Thu, 08 Mar 2012 08:49:19 +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 1S5Y5d-00056E-Q0; Thu, 08 Mar 2012 01:48:45 -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 1S5Y5c-000568-7X for ding@lists.math.uh.edu; Thu, 08 Mar 2012 01:48:44 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S5Y5b-0008NT-41 for ding@lists.math.uh.edu; Thu, 08 Mar 2012 01:48:43 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S5Y5Z-0007Ai-A1 for ding@gnus.org; Thu, 08 Mar 2012 08:48:41 +0100 Original-Received: from localhost ([127.0.0.1]:42213) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1S5Y5Q-00048f-Hq for ding@gnus.org; Thu, 08 Mar 2012 01:48:33 -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.130004 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.4) Emacs/24.0.94 (i686-pc-cygwin) Cancel-Lock: sha1:HTJ6czS9LxG5rFzKyi/EoavzGsY= 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 - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81524 Archived-At: Christopher Schmidt wrote: > Hey gurus, > I have a problem with Ma Gnus v0.3 (I am using the tagged one from git > repo) on GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version > 2.24.9) of 2012-03-08. > Recipe: > emacs -q > eval: > (setq gnus-select-method '(nnnil "") > mail-user-agent 'gnus-user-agent) > (add-hook 'message-mode-hook > (lambda () > (whitespace-mode 1))) > C-x m # whitespace mode works - note the red marker on the space after > `Subject' > M-x gnus RET > C-x m # the marker is gone :( Use `gnus-message-setup-hook' instead of `message-mode-hook', and `whitespace-mode' should work. > Long story short, this bug is caused by gnus-message-citation-mode doing > some crazy font-lock stuff. In particular that > (setq font-lock-set-defaults nil) > (font-lock-set-defaults) > in gnus-cite.el:1261 causes the trouble. This is what I did five years ago, and was necessary to make the value of `gnus-message-citation-keywords' reflect to font-lock. It is to replace existing font-lock keywords, but TRT will probably be to merge. Though I have neither an idea nor time now, I'd like to fix it some day.