From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: require-final-newline Date: Sat, 5 Mar 2005 13:53:28 -0600 (CST) Message-ID: <200503051953.j25JrS610363@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1110052921 18752 80.91.229.2 (5 Mar 2005 20:02:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2005 20:02:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 05 21:02:01 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7fST-0006Hi-JE for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 21:01:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7flt-0002nE-TX for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 15:21:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7flV-0002iU-5Z for emacs-devel@gnu.org; Sat, 05 Mar 2005 15:20:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7flF-0002d6-Vt for emacs-devel@gnu.org; Sat, 05 Mar 2005 15:20:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7flF-0002Zb-T7 for emacs-devel@gnu.org; Sat, 05 Mar 2005 15:20:29 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D7fNc-0006Jl-VC for emacs-devel@gnu.org; Sat, 05 Mar 2005 14:56:05 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j25Ju29N007348 for ; Sat, 5 Mar 2005 13:56:02 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j25JrS610363; Sat, 5 Mar 2005 13:53:28 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:34227 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34227 This is related with an issue discussed in another thread (require-hard-newlines to use newline), but is more general. In Emacs 21.3, Text mode did not override the default value of require-final-newline. In current CVS, it does via mode-require-final-newline. Is there a reason for that? I can see a reason for some specific derived modes, but these derived modes could use mode-require-final-newline themselves, instead of letting the parent mode do it for them. Also, nil _is_ a valid value for mode-require-final-newline. But the docstring is not very explicit about that and you can not set it to nil via Custom. If you set it to nil outside Custom, Custom will falsely describe the value as `ask', which is a bug. Would it be good to have the docstring mention this explicitly and allow it to be set to nil via Custom with proper warning of the involved dangers (which would fix the bug)? Sincerely, Luc.