From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Sun, 21 Nov 2004 14:37:49 +0100 Message-ID: References: <20041121020850.GA20436@apps.cwi.nl> <20041121122629.GE20436@apps.cwi.nl> <20041121124911.GG20436@apps.cwi.nl> <20041121132804.GJ20436@apps.cwi.nl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101044318 2003 80.91.229.6 (21 Nov 2004 13:38:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2004 13:38:38 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Alan Mackenzie , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 21 14:38:33 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVrvE-0006ze-00 for ; Sun, 21 Nov 2004 14:38:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVs4E-0006W5-EM for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 08:47:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVs3h-0006LW-UG for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:47:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVs3g-0006KB-CY for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:47:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVs3g-0006Jj-6k for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:47:16 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVruZ-0007Qf-B9 for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:37:51 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CVrsy-00042P-8s; Sun, 21 Nov 2004 08:36:12 -0500 Original-To: Andries Brouwer In-Reply-To: <20041121132804.GJ20436@apps.cwi.nl> (Andries Brouwer's message of "Sun, 21 Nov 2004 14:28:04 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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: main.gmane.org gmane.emacs.devel:30167 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30167 Andries Brouwer writes: > My point today is: > emacs must never unexpectedly change a file behind the user's back. It doesn't. Only when you edit and save a modified file, does it interpret the variable. > That is, the default settings must be so that emacs asks > before changing. I disagree. The default for most modes should be to keep the files as they are without asking. But since files without newline at the end are not valid C files, the default for C clearly should be different. > I do not believe that it is meaningful to have a separate > c-require-final-newline, but should it turn out that people exist > that really want different behaviours depending on major mode, then > for all major modes the default must again be ask (or the value of > the global variable). That's your opinion, as you have made abundantly clear already. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum