From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: global minor modes that can be overridden locally? [was: highlight-changes-mode] Date: Mon, 11 Dec 2006 02:16:57 +0100 Message-ID: <457CB189.9040908@student.lu.se> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165799914 7080 80.91.229.10 (11 Dec 2006 01:18:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 01:18:34 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 11 02:18:32 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 1GtZoH-0001RT-Ga for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2006 02:18:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtZoG-0006g9-Ni for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2006 20:18:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtZn1-0005sm-Fj for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:17:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtZmz-0005qk-6u for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:17:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtZmz-0005qf-1g for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:17:05 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GtZmw-0005HM-Mr; Sun, 10 Dec 2006 20:17:03 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:63341 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GtZmu-0000Au-4x; Mon, 11 Dec 2006 02:17:01 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: rms@gnu.org In-Reply-To: X-Antivirus: avast! (VPS 0655-1, 2006-12-08), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GtZmu-0000Au-4x. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GtZmu-0000Au-4x c07e13776fd0eebb9187f3293a12b1d9 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:63564 Archived-At: Richard Stallman wrote: > 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. > Why not define a new sub foo-mode-locally to toggle it in current buffer when it is a global minor mode? IMO that would be more easy to remember. Would it be harder to do it that way?