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: Sun, 29 May 2005 08:04:39 -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> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117369003 7909 80.91.229.2 (29 May 2005 12:16:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 May 2005 12:16:43 +0000 (UTC) Cc: Lute.Kamstra.lists@xs4all.nl, dominik@science.uva.nl, mmaug@yahoo.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 29 14:16:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DcMiK-0006tU-Cv for ged-emacs-devel@m.gmane.org; Sun, 29 May 2005 14:16:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcMmy-0000Tc-Pf for ged-emacs-devel@m.gmane.org; Sun, 29 May 2005 08:21:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DcMgr-0005ni-12 for emacs-devel@gnu.org; Sun, 29 May 2005 08:14:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DcMgk-0005mr-7M for emacs-devel@gnu.org; Sun, 29 May 2005 08:14:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcMgi-0005mH-O4 for emacs-devel@gnu.org; Sun, 29 May 2005 08:14:40 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DcMYw-0002mU-96 for emacs-devel@gnu.org; Sun, 29 May 2005 08:06:38 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DcMX1-0006yW-Tp; Sun, 29 May 2005 08:04:39 -0400 Original-To: Luc Teirlinck In-reply-to: <200505290157.j4T1vus10117@raven.dms.auburn.edu> (message from Luc Teirlinck on Sat, 28 May 2005 20:57:56 -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:37847 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37847 Why not have define-global-minor-mode automatically arrange to save the value in that variable? Because we have to know in which major mode the minor mode was enabled. That could easily happen behind define-global-minor-mode's back, by using the non-global variant. I think I understand that. But... In effect, we know of at least two examples of major modes that do this, comint-mode and interactive-sql-mode. This makes no sense to me. I thought you were talking about minor modes and what they need to do. Now you have switched to major modes. I cannot follow the change of subject. Meanwhile, you have not finished the explanation. Anyway, how about if we change define-minor-mode so that it generates the code to record which major mode enabled it?