From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: global minor modes that can be overridden locally? [was: highlight-changes-mode] Date: Mon, 11 Dec 2006 20:06:25 -0800 Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165896442 900 80.91.229.10 (12 Dec 2006 04:07:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 04:07:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 05:07:21 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 1GtyvD-0005S8-9o for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 05:07:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtyvC-0006id-Jp for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2006 23:07:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gtyuz-0006iF-Fv for emacs-devel@gnu.org; Mon, 11 Dec 2006 23:07:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gtyux-0006ha-Bx for emacs-devel@gnu.org; Mon, 11 Dec 2006 23:07:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gtyux-0006hW-5w for emacs-devel@gnu.org; Mon, 11 Dec 2006 23:06:59 -0500 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gtyuw-0001KL-0o for emacs-devel@gnu.org; Mon, 11 Dec 2006 23:06:58 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id kBC46ow0019468 for ; Mon, 11 Dec 2006 21:06:50 -0700 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kBC46nvL006817 for ; Mon, 11 Dec 2006 21:06:49 -0700 Original-Received: from dhcp-amer-csvpn-gw2-141-144-73-226.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2275890031165896386; Mon, 11 Dec 2006 21:06:26 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:63604 Archived-At: > Why not define a new sub foo-mode-locally to toggle it in > current buffer > when it is a global minor mode? > > Two different commands is the way we do it now. > In the current scheme; foo-mode is the local toggle > and global-foo-mode is the global toggle. Uh, I never heard of global-*-mode. Is that documented? I define a global minor mode using define-minor-mode with :global, and M-x foo-mode is the global toggle for it. There is no global-foo-mode defined for my mode by define-minor-mode with :global. > I think the current scheme is better than making foo-mode the global > command. I think it is already the global command. At least that's what I see.