From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53387 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: message mode loses highlighting Date: Thu, 10 Jul 2003 16:33:39 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nznjmyvdo.fsf@lockgroove.bwh.harvard.edu> References: <4n3chyi2sv.fsf@lockgroove.bwh.harvard.edu> <4nsmpxwitr.fsf@lockgroove.bwh.harvard.edu> <4n7k79vzjy.fsf@lockgroove.bwh.harvard.edu> <4nbrw62ykx.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=euc-jp Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1057869283 11382 80.91.224.249 (10 Jul 2003 20:34:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2003 20:34:43 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M1931@lists.math.uh.edu Thu Jul 10 22:34:41 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ai7C-0002uJ-00 for ; Thu, 10 Jul 2003 22:34:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19ai7N-0001s8-00; Thu, 10 Jul 2003 15:34:17 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19ai7F-0001s0-00 for ding@lists.math.uh.edu; Thu, 10 Jul 2003 15:34:09 -0500 Original-Received: (qmail 17537 invoked by alias); 10 Jul 2003 20:34:08 -0000 Original-Received: (qmail 17532 invoked from network); 10 Jul 2003 20:34:08 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by sclp3.sclp.com with SMTP; 10 Jul 2003 20:34:08 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h6AKXen04941; Thu, 10 Jul 2003 16:33:40 -0400 (EDT) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h6AKXeV23321; Thu, 10 Jul 2003 16:33:40 -0400 (EDT) Original-To: Katsumi Yamaoka X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: Katsumi Yamaoka , ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Tue, 08 Jul 2003 11:34:18 +0900") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53387 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53387 On Tue, 08 Jul 2003, yamaoka@jpl.org wrote: > I'm well aware of that. How did you use to turn on font-lock in > a messege buffer (before using it)? AFAIK, Gnus doesn't turn on > font-lock for the message-mode by default, except for XEmacs. I have (global-font-lock-mode t) in my .emacs, and it affects message-mode as well I think. > You are right. The tzz- function will surely turn on font-lock > for the *text-mode* and it will be still turned on for the > message-mode. Even so, the message-font-lock-keywords variable > will still be ignored. What you should do is to add the > following hook in order to turn on font-lock again for the > *message-mode*. For that purpose, it is necessary to use > `(font-lock-mode 1)' rather than `turn-on-font-lock' since > t-o-f-l does nothing if font-lock is already turned on: >=20 > (add-hook 'message-mode-hook (lambda nil (font-lock-mode 1))) When I do M-x font-lock-mode in a message-mode buffer it disables font-lock. Running it again re-enables font-lock. M-: (font-lock-mode 1) in a message-mode buffer after the tzz-highlighting-install function has no effect (but it returns t). The buffer remains without highlighting. Adding it to the message-mode-hook as a lambda function has no effect, either. Basically, my problem is that tzz-highlighting-install should work, and works in all other modes, but for message-mode it turns font-lock off. font-lock, however, still thinks it's on! So maybe the message-mode highlighting keywords are somehow affected by the font-lock-add-keywords statement. > P.S. > Sorry for my funny English. I am a sophisticated writer in > Japanese, but not in English. ;-) No problem, I appreciate your help greatly. I don't know if I'll get the characters right, since I don't speak Japanese, but here's a try:=20 =A4=C9=A4=A6=A4=E2arigata=A4=A6 :)=20 I couldn't figure out a way to input "ari" or "gata" with the japanese-hiragana input method. Ted