From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: How global is a define-global-minor-mode mode? Date: Sun, 28 Jan 2007 17:37:52 +0100 Message-ID: <86ejpf85un.fsf@lola.quinscape.zz> References: <4581996F.3050700@student.lu.se> <87y7nxmqzh.fsf@stupidchicken.com> <873b5vtapb.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 1170002315 30483 80.91.229.12 (28 Jan 2007 16:38:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2007 16:38:35 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Stefan Monnier To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 28 17:38:20 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 1HBD2p-0004Nh-9H for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2007 17:38:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBD2o-0008Iy-S6 for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2007 11:38:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBD2d-0008Is-Pt for emacs-devel@gnu.org; Sun, 28 Jan 2007 11:38:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBD2b-0008Ig-CI for emacs-devel@gnu.org; Sun, 28 Jan 2007 11:38:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBD2b-0008Id-6i for emacs-devel@gnu.org; Sun, 28 Jan 2007 11:38:05 -0500 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HBD2a-0004bk-MP for emacs-devel@gnu.org; Sun, 28 Jan 2007 11:38:05 -0500 Original-Received: from quinscape.de (pd95b0fdb.dip0.t-ipconnect.de [217.91.15.219]) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id RAA09318 for ; Sun, 28 Jan 2007 17:37:53 +0100 X-Delivered-To: Original-Received: (qmail 25641 invoked from network); 28 Jan 2007 16:38:00 -0000 Original-Received: from dslb-084-061-083-149.pools.arcor-ip.net (HELO lola.quinscape.zz) ([84.61.83.149]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 28 Jan 2007 16:38:00 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 62BB823834; Sun, 28 Jan 2007 17:37:52 +0100 (CET) In-Reply-To: <873b5vtapb.fsf@stupidchicken.com> (Chong Yidong's message of "Sun\, 28 Jan 2007 10\:47\:28 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:65568 Archived-At: Chong Yidong writes: > Richard Stallman writes: > >> > Not really: if the global minor mode is autoloaded, then >> > :require is a nuisance, >> >> > I don't follow. Could you explain why it is a nuisance? >> >> 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. > > The only way for Emacs to know which source file to :require, for a > third-party package, is to look at the custom-set-variables > declaration in .emacs. Uh, wouldn't the file to require be load-file-name at the time define-global-minor-mode is loaded or executed via autoload? -- David Kastrup