From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How global is a define-global-minor-mode mode? Date: Sun, 28 Jan 2007 23:32:55 -0500 Message-ID: References: <4581996F.3050700@student.lu.se> <87y7nxmqzh.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170045194 17988 80.91.229.12 (29 Jan 2007 04:33:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2007 04:33:14 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 29 05:33:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HBOCd-0003j1-Je for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 05:33:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBOCd-0008SD-4S for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2007 23:33:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBOCQ-0008Ry-FS for emacs-devel@gnu.org; Sun, 28 Jan 2007 23:32:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBOCP-0008Ri-VZ for emacs-devel@gnu.org; Sun, 28 Jan 2007 23:32:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBOCP-0008Rf-P1 for emacs-devel@gnu.org; Sun, 28 Jan 2007 23:32:57 -0500 Original-Received: from tomts20.bellnexxia.net ([209.226.175.74] helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HBOCO-0003q0-MI; Sun, 28 Jan 2007 23:32:56 -0500 Original-Received: from pastel.home ([74.13.168.230]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070129043255.QONB24907.tomts20-srv.bellnexxia.net@pastel.home>; Sun, 28 Jan 2007 23:32:55 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 70B447F26; Sun, 28 Jan 2007 23:32:55 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Sun\, 28 Jan 2007 02\:42\:17 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:65582 Archived-At: > The :require thingy is a risk: if you move the definition of the mode to > another file, then the user's customizations will be broken (it happened > with global-font-lock-mode). > It seems that you are saying the risk is that the :require has to > specify the file name, so if you move the definition to another file, > the :require argument will be wrong. > If the :require is generated automatically, perhaps it would never be > wrong. No, the :require is of course correct. The problem is that when you set the variable, the current :require gets copied into your .emacs file, and when you later run an Emacs where that minor mode was moved to another file, your .emacs still points to the old location and the startup fails to set the var (and complains that the file doesn't define function bar-mode). Stefan