From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Why aren't paragraph-s\(tart\|eparate\) buffer local by default? Date: Sun, 19 Jun 2005 11:55:47 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119196303 23467 80.91.229.2 (19 Jun 2005 15:51:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2005 15:51:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Sun Jun 19 17:51:42 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dk24p-0000jG-3p for sf-cc-mode-help@m.gmane.org; Sun, 19 Jun 2005 17:51:15 +0200 Original-Received: from projects.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id 575C488E81; Sun, 19 Jun 2005 08:57:01 -0700 (PDT) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1Dk29o-000540-No for cc-mode-help@lists.sourceforge.net; Sun, 19 Jun 2005 08:56:24 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1Dk29n-0005c3-9u for cc-mode-help@lists.sourceforge.net; Sun, 19 Jun 2005 08:56:24 -0700 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dk29D-0003zB-V8; Sun, 19 Jun 2005 11:55:48 -0400 Original-To: Alan Mackenzie Original-Cc: bug-cc-mode@gnu.org In-reply-to: (message from Alan Mackenzie on Sat, 18 Jun 2005 21:17:31 +0000 (GMT)) X-Spam-Score: -0.1 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 -0.1 AWL AWL: From: address is in the auto white-list Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Sun, 19 Jun 2005 11:55:47 -0400 Xref: news.gmane.org gmane.emacs.cc-mode.general:2429 gmane.emacs.devel:39116 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39116 Why aren't paragraph-s\(tart\|eparate\) buffer local? There doesn't seem to be any call for having global values for them since so many major modes (amongst them C Mode, Lisp mode, Texinfo mode) give these variables mode specific values. There is certainly a reason for these variables to have global defaults. The paragraph commands can be used even in Fundamental mode. We could consider making them automatically local whenever set; that doesn't require eliminating the global defaults. I am not sure this is bad, but it isn't obvious to me it is desirable. I think the right fix for the problem you encountered is to make c-set-style check that the buffer has an appropriate mode before it does anything else. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click