From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: mode-require-final-newline Date: Wed, 30 Mar 2005 19:31:34 -0600 (CST) Message-ID: <200503310131.j2V1VYq06880@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112233131 7259 80.91.229.2 (31 Mar 2005 01:38:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 01:38:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 03:38:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGode-0006Tf-Rl for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 03:38:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGouF-0007BI-P5 for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2005 20:55:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGotU-00078g-HF for emacs-devel@gnu.org; Wed, 30 Mar 2005 20:54:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGotM-00072f-JW for emacs-devel@gnu.org; Wed, 30 Mar 2005 20:54:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGotL-00071x-Br for emacs-devel@gnu.org; Wed, 30 Mar 2005 20:54:39 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGoY0-0002FC-GD for emacs-devel@gnu.org; Wed, 30 Mar 2005 20:32:36 -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 j2V1Wa9N021261 for ; Wed, 30 Mar 2005 19:32:36 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j2V1VYq06880; Wed, 30 Mar 2005 19:31:34 -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 Xref: news.gmane.org gmane.emacs.devel:35394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35394 I believe that the docstring of `mode-require-newline' should also explicitly mention the possibility of setting it to nil. So now I propose the following patch. Compared to the previous patch, it only adds one line to the docstring. ===File ~/files.el-diff-3=================================== *** files.el 28 Mar 2005 15:33:36 -0600 1.753 --- files.el 30 Mar 2005 19:14:26 -0600 *************** *** 291,297 **** :group 'editing-basics) (defcustom mode-require-final-newline t ! "*Whether to add a newline at the end of the file, in certain major modes. Those modes set `require-final-newline' to this value when you enable them. They do so because they are used for files that are supposed to end in newlines, and the question is how to arrange that. --- 291,297 ---- :group 'editing-basics) (defcustom mode-require-final-newline t ! "*Whether to add a newline at end of file, in certain major modes. Those modes set `require-final-newline' to this value when you enable them. They do so because they are used for files that are supposed to end in newlines, and the question is how to arrange that. *************** *** 299,308 **** A value of t means do this only when the file is about to be saved. A value of `visit' means do this right after the file is visited. A value of `visit-save' means do it at both of those times. ! Any other non-nil value means ask user whether to add a newline, when saving." :type '(choice (const :tag "When visiting" visit) (const :tag "When saving" t) (const :tag "When visiting or saving" visit-save) (other :tag "Ask" ask)) :group 'editing-basics :version "22.1") --- 299,310 ---- A value of t means do this only when the file is about to be saved. A value of `visit' means do this right after the file is visited. A value of `visit-save' means do it at both of those times. ! Any other non-nil value means ask user whether to add a newline, when saving. ! nil means don't add newlines." :type '(choice (const :tag "When visiting" visit) (const :tag "When saving" t) (const :tag "When visiting or saving" visit-save) + (const :tag "Never" nil) (other :tag "Ask" ask)) :group 'editing-basics :version "22.1") ============================================================