From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: How global is a define-global-minor-mode mode? Date: Thu, 25 Jan 2007 09:56:52 +0100 Message-ID: <45B870D4.8020509@gmail.com> References: <4581996F.3050700@student.lu.se> <87y7nxmqzh.fsf@stupidchicken.com> <45B6A179.9020604@gmail.com> <45B7B3AE.9020000@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169715492 28260 80.91.229.12 (25 Jan 2007 08:58:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2007 08:58:12 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 25 09:58:08 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 1HA0Qp-0008Dx-Az for ged-emacs-devel@m.gmane.org; Thu, 25 Jan 2007 09:58:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HA0Qo-0000VJ-3e for ged-emacs-devel@m.gmane.org; Thu, 25 Jan 2007 03:58:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HA0QW-0000VB-Bp for emacs-devel@gnu.org; Thu, 25 Jan 2007 03:57:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HA0QT-0000Uz-Ry for emacs-devel@gnu.org; Thu, 25 Jan 2007 03:57:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HA0QT-0000Uw-Kx for emacs-devel@gnu.org; Thu, 25 Jan 2007 03:57:45 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HA0QS-0004n8-Db; Thu, 25 Jan 2007 03:57:44 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:63435 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1HA0QM-0004wb-5H; Thu, 25 Jan 2007 09:57:39 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 In-Reply-To: X-Antivirus: avast! (VPS 000706-1, 2007-01-24), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1HA0QM-0004wb-5H. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1HA0QM-0004wb-5H 600c332964098d5a9eba9226fbc1aaed X-detected-kernel: Linux 2.6? (barebone, rare!) 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:65456 Archived-At: Stefan Monnier wrote: > Yes, there is code that runs the minor-mode function if it is global and has > been set. This *should* work. So please tell us what you tried that failed > to work. Just put the code I sent in a previous message in a file, set customize the defcustom and the define-minor-mode variables to t. Save this customization and make sure the file is loaded when you restart Emacs. Read the messages in the *Message* buffer to see what code from those two variables were run.