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: Sat, 30 Dec 2006 01:23:50 -0500 Message-ID: References: <4581996F.3050700@student.lu.se> <45954E7C.8010700@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1167459958 18651 80.91.229.12 (30 Dec 2006 06:25:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2006 06:25:58 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 30 07:25:56 2006 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 1H0XfC-00065z-8a for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2006 07:25:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0XfB-00032E-GB for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2006 01:25:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0XdZ-0001dS-A3 for emacs-devel@gnu.org; Sat, 30 Dec 2006 01:24:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0XdX-0001bW-KQ for emacs-devel@gnu.org; Sat, 30 Dec 2006 01:24:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0XdW-0001ag-0i for emacs-devel@gnu.org; Sat, 30 Dec 2006 01:24:06 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H0XdV-0006px-Qe for emacs-devel@gnu.org; Sat, 30 Dec 2006 01:24:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1H0XdG-00030p-Ta; Sat, 30 Dec 2006 01:23:50 -0500 Original-To: "Lennart Borgman (gmail)" In-reply-to: <45954E7C.8010700@gmail.com> (lennart.borgman@gmail.com) 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:64476 Archived-At: I believe the problem is that the setup of the hook functions is not done as expected. I have my global minor mode set to t in customize, but I do not found the global mode hook functions in the hook after startup. (The global minor mode is t.) That sounds like a bug. Can you debug it? Can you provide a _precise_ self-contained test case so someone else can debug it? I think Drew said that the documentation for define-global-minor-mode needs some enhancement. I think that too, especially something could be mentioned about the difference using :global t with define-minor-mode. Maybe it does, but not based on a bug. We should fix the bug, and document the correct behavior.