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: Thu, 25 Jan 2007 14:27:47 -0500 Message-ID: References: <4581996F.3050700@student.lu.se> <87y7nxmqzh.fsf@stupidchicken.com> <45B6A179.9020604@gmail.com> <45B7B3AE.9020000@gmail.com> <45B870D4.8020509@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169753309 11444 80.91.229.12 (25 Jan 2007 19:28:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2007 19:28:29 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 25 20:28:15 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 1HAAGc-00021K-8y for ged-emacs-devel@m.gmane.org; Thu, 25 Jan 2007 20:28:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAAGb-0000vC-Ls for ged-emacs-devel@m.gmane.org; Thu, 25 Jan 2007 14:28:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAAGQ-0000rG-9g for emacs-devel@gnu.org; Thu, 25 Jan 2007 14:28:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAAGP-0000pt-Kb for emacs-devel@gnu.org; Thu, 25 Jan 2007 14:28:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAAGP-0000pX-BQ for emacs-devel@gnu.org; Thu, 25 Jan 2007 14:28:01 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HAAGM-0005VU-MG; Thu, 25 Jan 2007 14:27:58 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id AE92A2CF1C2; Thu, 25 Jan 2007 14:27:55 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id CA7733FE0; Thu, 25 Jan 2007 14:27:47 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id B50316B7DB; Thu, 25 Jan 2007 14:27:47 -0500 (EST) In-Reply-To: <45B870D4.8020509@gmail.com> (Lennart Borgman's message of "Thu\, 25 Jan 2007 09\:56\:52 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:65461 Archived-At: >> 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, As mentioned, this code uses a :set which is a bad idea. So I see no point in trying that out before you try out a simpler code. When simple code doesn't do what one wants, it's clearly a bug. When convoluted code behaves strange, it's never really clear whether it's a bug in Emacs or in the convoluted code. > set customize the defcustom and the define-minor-mode variables to t. How? Where? Those details are very important. > Save this customization and make sure the file is loaded when you restart > Emacs. Which file? How do you ensure it's loaded? Again, those details are very important. Stefan