From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: How global is a define-global-minor-mode mode? Date: Sat, 27 Jan 2007 14:43:00 -0500 Message-ID: <87iresb6ij.fsf@stupidchicken.com> References: <4581996F.3050700@student.lu.se> <87y7nxmqzh.fsf@stupidchicken.com> <45B6A179.9020604@gmail.com> <45B7B3AE.9020000@gmail.com> <45B9255B.6030002@gmail.com> <45B943A3.8020600@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169927022 10415 80.91.229.12 (27 Jan 2007 19:43:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2007 19:43:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 27 20:43:36 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 1HAtSV-0001GW-Uq for ged-emacs-devel@m.gmane.org; Sat, 27 Jan 2007 20:43:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAtSV-0000hX-Ii for ged-emacs-devel@m.gmane.org; Sat, 27 Jan 2007 14:43:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAtSM-0000hL-2F for emacs-devel@gnu.org; Sat, 27 Jan 2007 14:43:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAtSJ-0000gz-Er for emacs-devel@gnu.org; Sat, 27 Jan 2007 14:43:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAtSJ-0000gv-BB for emacs-devel@gnu.org; Sat, 27 Jan 2007 14:43:19 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HAtSI-0007wr-UH for emacs-devel@gnu.org; Sat, 27 Jan 2007 14:43:19 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HAtS8-0007Od-RV for emacs-devel@gnu.org; Sat, 27 Jan 2007 20:43:08 +0100 Original-Received: from sydneypacific-seven-twenty-six.mit.edu ([18.95.7.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Jan 2007 20:43:08 +0100 Original-Received: from cyd by sydneypacific-seven-twenty-six.mit.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Jan 2007 20:43:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sydneypacific-seven-twenty-six.mit.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:c+8+x+AcehvF5rhhnKHvDLECtmk= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:65538 Archived-At: Stefan Monnier writes: >> (define-minor-mode temp-mode >> "dummy" >> :init-value nil >> :lighter nil >> :global t >> :group 'temp-test >> :initialize 'custom-initialize-set >> :set (lambda(sym val) >> (message " temp-mode :set => sym=%s, val=%s" sym val) >> (set-default sym val)) >> (message " temp-mode body => temp-mode=%s, current-buffer=%s" temp-mode (current-buffer))) > > I do not care to support a define-minor-mode with a :set. And same thing > about a :initialize. The same holds for define-global-minor-mode of course. > > Please take a big step back and tell me what you want to do, rather than > try to ask how to get your ugly-hack to work. I concur. This should not be a FOR-RELEASE bug.