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 12:48:47 -0500 (CDT) Message-ID: <200506011748.j51HmlO25166@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> <200506010233.j512XjZ21741@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117648723 1275 80.91.229.2 (1 Jun 2005 17:58:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 17:58:43 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, mmaug@yahoo.com, Lute.Kamstra.lists@xs4all.nl, dominik@science.uva.nl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 01 19:58:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdXSu-000820-2L for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 19:57:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdXYE-0005Mi-TO for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 14:02:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdXUB-00043y-TX for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:58:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdXU5-00040D-IB for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:58:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdXU4-0003pN-Cc for emacs-devel@gnu.org; Wed, 01 Jun 2005 13:58:28 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdXNK-0007oB-Jm; Wed, 01 Jun 2005 13:51:30 -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 j51HnNCK003792; Wed, 1 Jun 2005 12:49:23 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j51HmlO25166; Wed, 1 Jun 2005 12:48:47 -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:47 -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:38007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38007 Richard Stallman wrote: Any function could potentially set up the minor mode for a given major mode, not just the minor mode function. I do not understand what you're talking about. Font Lock is a pretty wild example of that. Would you please be specific? I am talking about things like font-lock-{add,remove}-keywords, when passing nil for MODE. In addition to this difficulty, not all minor modes are defined with define-minor-mode. Note that my latest patch to easy-mmode no longer requires minor modes to manage the MODE-stored-mode variable themselves. define-global-minor's managing is not 100% reliable, but now the variable is only used for efficiency's sake, not for correctness' sake, so it no longer needs to be 100% reliable. A minor modes can manage MODE-stored-mode _if it wants to_. define-global-minor mode's managing will not interfere with the minor mode's own managing. Sincerely, Luc.