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: Mon, 22 Jan 2007 09:55:25 -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 1169478354 12921 80.91.229.12 (22 Jan 2007 15:05:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2007 15:05:54 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 22 16:05:50 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 1H90ji-0000UN-Vo for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 16:05:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H90ji-00079H-IV for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 10:05:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H90ii-00061c-Fe for emacs-devel@gnu.org; Mon, 22 Jan 2007 10:04:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H90if-0005y8-1r for emacs-devel@gnu.org; Mon, 22 Jan 2007 10:04:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H90ie-0005xs-Kw for emacs-devel@gnu.org; Mon, 22 Jan 2007 10:04:24 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H90ic-0005JR-Ni; Mon, 22 Jan 2007 10:04:22 -0500 Original-Received: from pastel.home ([70.55.144.55]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070122150422.PRRV11361.tomts43-srv.bellnexxia.net@pastel.home>; Mon, 22 Jan 2007 10:04:22 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C557B7F3C; Mon, 22 Jan 2007 09:55:25 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon\, 22 Jan 2007 04\:04\:38 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) 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:65378 Archived-At: > Isn't it the case that it works if the minor mode function > corresponding to the variable is autoloaded? Otherwise, IIRC you need > to add a :require to the definition of the minor mode. > Could define-global-minor-mode do that automatically? Not really: if the global minor mode is autoloaded, then :require is a nuisance, so to do it automatically, define-global-minor-mode would have to know whether it's autoloaded or not. And in most/all cases it's autoloaded anyway and if not, it should. Stefan