From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Sun, 21 Nov 2004 19:12:33 -0500 Message-ID: <87llcug31i.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101082505 11839 80.91.229.6 (22 Nov 2004 00:15:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 00:15:05 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Andries Brouwer , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 22 01:14:55 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 1CW1r5-0000vx-00 for ; Mon, 22 Nov 2004 01:14:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CW206-0006Ig-Lp for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 19:24:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CW1yE-0005TH-Al for emacs-devel@gnu.org; Sun, 21 Nov 2004 19:22:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CW1yC-0005Qc-FY for emacs-devel@gnu.org; Sun, 21 Nov 2004 19:22:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CW1yA-0005QW-Vs for emacs-devel@gnu.org; Sun, 21 Nov 2004 19:22:15 -0500 Original-Received: from [209.226.175.93] (helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CW1oo-0002rr-Hg; Sun, 21 Nov 2004 19:12:34 -0500 Original-Received: from alfajor ([67.71.119.192]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041122001233.YQEE1584.tomts36-srv.bellnexxia.net@alfajor>; Sun, 21 Nov 2004 19:12:33 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 17D30D73A2; Sun, 21 Nov 2004 19:12:33 -0500 (EST) Original-To: Alan Mackenzie In-Reply-To: (Alan Mackenzie's message of "Sun, 21 Nov 2004 11:41:34 +0000 (GMT)") 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:30219 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30219 > Before that, c-mode silently set require-final-newline to t, and the only > remedy was to write a hook function. That was surely worse. I guess that's one of the reasons why some people consider `customize' as harmful: using mode hooks is nothing bad, quite the contrary: it's the standard way to change things in a mode-specific way. > That's somewhat unfair. `require-final-newline' is something that, with > the benefit of hindsight, was perhaps a bad idea. No, it's a very good idea. But setting it to t without the user's explicit consent is a problem because few users know about it so they won't understand what's going on. Setting it to `ask' is safe and provides basically the same benefit. Stefan