From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Wed, 1 Jun 2005 13:05:50 -0500 (CDT) Message-ID: <200506011805.j51I5o425182@raven.dms.auburn.edu> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> <200505252135.j4PLZvt26969@raven.dms.auburn.edu> <87hdgrufcl.fsf-monnier+emacs@gnu.org> <200505260359.j4Q3xbj28809@raven.dms.auburn.edu> <87is16rsid.fsf-monnier+emacs@gnu.org> <200505261501.j4QF17h00246@raven.dms.auburn.edu> <87psveq60w.fsf-monnier+emacs@gnu.org> <200505271717.j4RHHGD07067@raven.dms.auburn.edu> <200505290157.j4T1vus10117@raven.dms.auburn.edu> <200505292354.j4TNsTE13354@raven.dms.auburn.edu> <200506010242.j512gQ321746@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117649324 3344 80.91.229.2 (1 Jun 2005 18:08:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 18:08:44 +0000 (UTC) Cc: mmaug@yahoo.com, dominik@science.uva.nl, monnier@iro.umontreal.ca, Lute.Kamstra.lists@xs4all.nl, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 01 20:08:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdXdG-0000w4-FA for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 20:07:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdXib-0002Th-8p for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 14:13:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdXiC-0002OV-Ot for emacs-devel@gnu.org; Wed, 01 Jun 2005 14:13:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdXi9-0002MW-Jf for emacs-devel@gnu.org; Wed, 01 Jun 2005 14:13:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdXi8-0002Kr-TV for emacs-devel@gnu.org; Wed, 01 Jun 2005 14:13:00 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdXdp-0000ka-Jg; Wed, 01 Jun 2005 14:08:33 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j51I6QCK003827; Wed, 1 Jun 2005 13:06:26 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j51I5o425182; Wed, 1 Jun 2005 13:05:50 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Wed, 01 Jun 2005 13:23:48 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38008 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38008 Richard Stallman wrote: With "current" major mode, I mean the value of `major-mode' when font-lock-add-keywords is called. That could be the parent mode or even an earlier ancestor mode of the final major mode. Ok, now I understand what you meant by that particular point. Could you give a self-contained and clear explanation of why this is a problem? Because it initializes Font Lock for the wrong major mode. Currently, any attempts to correct this undo prior calls to font-lock-{add,remove}-keywords that passed nil for MODE. Some of these calls we actually might _want_ to undo, but others not, according to some as yet undocumented rules. Basically, it appears to me that the way Font Lock handles calls to font-lock-{add,remove}-keywords that pass nil for MODE is flawed. Sincerely, Luc.