From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53389 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: message mode loses highlighting Date: Fri, 11 Jul 2003 15:50:35 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: 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> <4nznjmyvdo.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: main.gmane.org 1057906285 31237 80.91.224.249 (11 Jul 2003 06:51:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2003 06:51:25 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M1933@lists.math.uh.edu Fri Jul 11 08:51:24 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 19arkZ-00087f-00 for ; Fri, 11 Jul 2003 08:51:24 +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 19arkE-0002lH-00; Fri, 11 Jul 2003 01:51:02 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19ark5-0002lB-00 for ding@lists.math.uh.edu; Fri, 11 Jul 2003 01:50:54 -0500 Original-Received: (qmail 43612 invoked by alias); 11 Jul 2003 06:50:53 -0000 Original-Received: (qmail 43607 invoked from network); 11 Jul 2003 06:50:53 -0000 Original-Received: from unknown (HELO minsk.hostforweb.net) (139.81.163.140) by sclp3.sclp.com with SMTP; 11 Jul 2003 06:50:53 -0000 Original-Received: from yamaokac by minsk.hostforweb.net with local (Exim 3.36 #1) id 19ark2-0001Iq-00; Fri, 11 Jul 2003 02:50:50 -0400 Original-To: Ted Zlatanov 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.1003 (Gnus v5.10.3) XEmacs/21.4 (Rational FORTRAN, linux) Cancel-Lock: sha1:tWQz9OCiq9sICIuPLKc7Bek9g4s= X-Payment: hashcash 1.2 0:030711:tzz@lifelogs.com:98b1f7205d9b0a53 X-Hashcash: 0:030711:tzz@lifelogs.com:98b1f7205d9b0a53 X-Payment: hashcash 1.2 0:030711:ding@gnus.org:5b1c34f63e6013e4 X-Hashcash: 0:030711:ding@gnus.org:5b1c34f63e6013e4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - minsk.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [32531 32531] / [32531 32531] X-AntiAbuse: Sender Address Domain - minsk.hostforweb.net Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53389 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53389 >>>>> In <4nznjmyvdo.fsf@lockgroove.bwh.harvard.edu> >>>>> Ted Zlatanov wrote: > I have > (global-font-lock-mode t) > in my .emacs, and it affects message-mode as well I think. Oops, I forgot it completely since I am using XEmacs usually. In addition, I made two mistakes. One is I am using Develock[1], the other is I forgot there is the font-lock-set-defaults buffer local variable which indicates whether font-lock-keywords have already been set. You can make your message buffer look like fruit parfait again using the following hook: (add-hook 'message-mode-hook (lambda nil (setq font-lock-set-defaults nil) (font-lock-mode 1))) or (add-hook 'message-mode-hook (lambda nil (font-lock-mode -1) (font-lock-mode 1))) (Otherwise, you can use Develock instead ;-) Therefore, we may have to turn off font-lock in the message-mode function as follows: --- message.el~ 2003-07-08 00:55:55 +0000 +++ message.el 2003-07-11 06:49:10 +0000 @@ -2345,6 +2345,8 @@ "<#!*/?\\(multipart\\|part\\|external\\|mml\\|secure\\)")) ;; Allow using comment commands to add/remove quoting. (set (make-local-variable 'comment-start) message-yank-prefix) + (when (featurep 'font-lock) + (font-lock-mode -1)) (if (featurep 'xemacs) (message-setup-toolbar) (set (make-local-variable 'font-lock-defaults) >> 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: > どうもarigataう :) Great! But please say a-ri-ga-to-u, not a-ri-ga-ta-u. > I couldn't figure out a way to input "ari" or "gata" with the > japanese-hiragana input method. どうもありがとう :) -- Katsumi Yamaoka [1] ftp://ftp.jpl.org/pub/elisp/develock.el.gz