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: How global is a define-global-minor-mode mode? Date: Fri, 29 Dec 2006 10:44:17 -0500 Message-ID: References: <4581996F.3050700@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: dough.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1167407149 13492 80.91.229.10 (29 Dec 2006 15:45:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2006 15:45:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 29 16:45:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1H0JvR-0001LU-Bj for ged-emacs-devel@m.gmane.org; Fri, 29 Dec 2006 16:45:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0JvQ-0007Ul-RL for ged-emacs-devel@m.gmane.org; Fri, 29 Dec 2006 10:45:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0JuK-0006pO-4S for emacs-devel@gnu.org; Fri, 29 Dec 2006 10:44:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0JuJ-0006nx-BA for emacs-devel@gnu.org; Fri, 29 Dec 2006 10:44:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0JuJ-0006nj-0w for emacs-devel@gnu.org; Fri, 29 Dec 2006 10:44:31 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H0JuI-0003GZ-Nq for emacs-devel@gnu.org; Fri, 29 Dec 2006 10:44:30 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1H0Ju5-0005Rg-0d; Fri, 29 Dec 2006 10:44:17 -0500 Original-To: Lennart Borgman In-Reply-To: <4581996F.3050700@student.lu.se> (message from Lennart Borgman on Thu, 14 Dec 2006 19:35:27 +0100) 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:64421 Archived-At: [I sent this message a few days ago but did not get a response. Could we get the discussion moving again?] I am trying to use define-global-minor-mode, see below. I have customized the global mode to be t, but when I open new buffers the minor mode is not set in them. Is this a bug in define-global-minor-mode? My impression is that the global mode defined with define-global-minor-mode does not affect all buffers to be created in the future. It only catches buffers created by visiting files. If so, I think what is needed is to add this to the documentation of define-global-minor-mode. Globally enabling the mode also affects buffers subsequently created by visiting files, but not buffers subsequently created in other ways. Can anyone confirm that this is right?