From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: [rudalics@gmx.at: whitespace.el's permanent-locals] Date: Wed, 14 Mar 2007 23:20:09 +0100 Message-ID: <45F87519.3030908@gmail.com> References: <87lkhziiuf.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173910861 25635 80.91.229.12 (14 Mar 2007 22:21:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2007 22:21:01 +0000 (UTC) Cc: rms@gnu.org, Rajesh Vaidheeswarran , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 23:20:55 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 1HRbq2-0006KL-Jg for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2007 23:20:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRbqy-00043L-42 for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2007 17:21:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRbqu-00042L-Sw for emacs-devel@gnu.org; Wed, 14 Mar 2007 18:21:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRbqt-000429-7u for emacs-devel@gnu.org; Wed, 14 Mar 2007 18:21:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRbqt-000426-3z for emacs-devel@gnu.org; Wed, 14 Mar 2007 17:21:47 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HRbpl-00015b-AC; Wed, 14 Mar 2007 18:20:37 -0400 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62797 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1HRbpj-0006wU-6k; Wed, 14 Mar 2007 23:20:35 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 In-Reply-To: <87lkhziiuf.fsf@catnip.gol.com> X-Antivirus: avast! (VPS 000723-2, 2007-03-14), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1HRbpj-0006wU-6k. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1HRbpj-0006wU-6k 27cf6ef372c3627aa9dc4554a97df6e4 X-detected-kernel: Linux 2.6? (barebone, rare!) 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:67946 Archived-At: Miles Bader wrote: > "Rajesh Vaidheeswarran" writes: >> If I remember the reason correctly, it was because wanted the ability >> to toggle on/off the check for and correct the various types of >> whitespaces to be on a per-buffer basis. > > Just make it a normal minor mode. I see no reason to do otherwise. > > Indeed, this is exactly the sort of minor-mode which is likely to get > put into hook functions for various major-modes because the user wants > to control whitespace in that mode. In such a case (and I think it's > the most common one) the parameters are much more likely to be > _mode_-specific rather than buffer-specific. > > -miles I agree. And a convenient way for the user to achive that is to use define-globalized-minor-mode and define his own globalized version of the minor mode.