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: global minor modes that can be overridden locally? [was: highlight-changes-mode] Date: Sun, 10 Dec 2006 20:06:49 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: dough.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1165799481 6137 80.91.229.10 (11 Dec 2006 01:11:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 01:11:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 11 02:11:19 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 1GtZhO-0000sV-P5 for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2006 02:11:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtZhO-0001Gx-6g for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2006 20:11:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtZd5-0006mj-O7 for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:06:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtZd4-0006lC-Kt for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:06:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtZd4-0006l6-5A for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:06:50 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GtZd3-0002sY-Um for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:06:49 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1GtZd3-00041e-6T; Sun, 10 Dec 2006 20:06:49 -0500 Original-To: "Drew Adams" In-reply-to: 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:63562 Archived-At: 4. Perhaps an interface for #3 something like this? - M-x foo-mode toggles the mode everywhere (including in buffers that have local values?) - it is like using setq-default (should it also change the local values?). - C-u M-x foo-mode toggles the mode in the current buffer only - it is like using setq with a local variable. That might be good. However, I'd rather have the simplest call affect only the current buffer and use C-u to make it global. - C-9 M-x foo-mode turns the mode on globally. M-- M-x foo-mode turns it off globally. That is, you use a numeric prefix to explicitly turn it on or off globally (vs toggling). That would fit the current scheme (except that these should operate locally). - C-u C-u foo-mode turns it on locally; C-u C-u C-u turns it off locally. That is, you use an non-numeric prefix to explicitly turn it on or off locally (vs toggling). Perhaps someone has a better idea here? these might be ok for global turn on and off.