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:52:30 +0100 Message-ID: <457CB9DE.8020704@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 1165801972 10976 80.91.229.10 (11 Dec 2006 01:52:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 01:52:52 +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:52:51 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 1GtaLZ-00041h-83 for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2006 02:52:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtaLY-0000KT-Rw for ged-emacs-devel@m.gmane.org; Sun, 10 Dec 2006 20:52:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtaLL-0000IK-9u for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:52:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtaLJ-0000Hf-Ob for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:52:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtaLJ-0000Hc-MT for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:52:33 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GtaLJ-0002yQ-II for emacs-devel@gnu.org; Sun, 10 Dec 2006 20:52:33 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:63591 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GtaLH-0006vk-6S; Mon, 11 Dec 2006 02:52:31 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Drew Adams 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 1GtaLH-0006vk-6S. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GtaLH-0006vk-6S fc44874a7b11672e4708bad212eeef4f 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:63569 Archived-At: Drew Adams wrote: >> Why not define a new sub foo-mode-locally to toggle it in current buffer >> when it is a global minor mode? >> > > Not clear to me what you mean. > That makes me wonder if I am misunderstanding something ... Are we not talking about global minor mode and how to turn them on or off both globally in all buffers and locally in just one buffer? I meant that foo-mode should toggle the global minor mode in all buffers and foo-mode-locally should toggle it in just the current buffer. Should not that be possible?