From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: delete-trailing-whitespace behavior change? Date: Wed, 12 Dec 2018 21:26:53 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <87a7lawy65.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1544650103 27952 195.159.176.226 (12 Dec 2018 21:28:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 21:28:23 +0000 (UTC) User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 22:28:19 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXC3E-00077n-LI for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 22:28:16 +0100 Original-Received: from localhost ([::1]:48176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXC5L-0006Cv-2F for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 16:30:27 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: aPJVVR0E0beUwQdJulDzVg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:224855 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118984 Archived-At: Loris Bennett wrote: > I have this setting too and my Emacs 25.1.1 deletes all empty newlines > at the end of a file, which it is what it says on the tin: > > If this command acts on the entire buffer (i.e. if called > interactively with the mark inactive, or called from Lisp with END > nil), it also deletes all trailing lines at the end of the buffer if > the variable ‘delete-trailing-lines’ is non-nil. > > The 24.5.1 tins say the same thing. The option delete-trailing-lines appeared in version 24.3. So there may be a change of behaviour between 24.1, 24.2 and 25.x >From /usr/share/emacs/*/etc/NEWS* * Editing Changes in Emacs 24.3 ** New option `delete-trailing-lines' specifies whether M-x delete-trailing-whitespace should delete trailing lines at the end of the buffer. It defaults to t.