From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Wed, 01 Jun 2005 13:23:48 -0400 Message-ID: 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> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117647190 28629 80.91.229.2 (1 Jun 2005 17:33:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 17:33:10 +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 19:33:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdX3j-0004Y8-1p for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 19:31:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdX93-0005XV-Jl for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 13:36:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdX4i-0003RF-Rt for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:32:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdX4Y-0003L6-H4 for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:32:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdX4W-0003Hx-Ld for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:32:04 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdWzU-0005Un-Qn for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:26:52 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DdWwW-0001IJ-JF; Wed, 01 Jun 2005 13:23:48 -0400 Original-To: Luc Teirlinck In-reply-to: <200506010242.j512gQ321746@raven.dms.auburn.edu> (message from Luc Teirlinck on Tue, 31 May 2005 21:42:26 -0500 (CDT)) 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:38006 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38006 The problem is that if you call these functions with `nil' for MODE, this sets up Font Lock for the current major mode, which could be an ancestor mode (it calls font-lock-set-defaults). I don't understand. How can the current major mode "be" an ancestor mode? Do you mean that the font-lock settings came from an ancestor mode? 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?