From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: delete-trailing-whitespace behavior change? Date: Wed, 12 Dec 2018 12:47:18 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1544636795 10279 195.159.176.226 (12 Dec 2018 17:46:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 17:46:35 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: skip.montanaro@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 18:46:31 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 1gX8ad-0002Zc-3C for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 18:46:31 +0100 Original-Received: from localhost ([::1]:46754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX8cj-0002g6-WA for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 12:48:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX8cI-0002fw-67 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 12:48:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX8cF-00016b-QD for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 12:48:14 -0500 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:42844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX8cB-0000to-Mv for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 12:48:09 -0500 Original-Received: by mail-lj1-x229.google.com with SMTP id l15-v6so17047917lja.9 for ; Wed, 12 Dec 2018 09:47:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XII4Uia86+n6PeVajxvDBzKIIcVfvqcewFprO2aSO2w=; b=Q0cc3rE7s91gYineE3nhBSXL9kfAftxVjWqykDVQ9fp4wp48ocDNw6XXZ62l5rzJS7 2vRKjBo0W6TN/QWxLaZ1SQTWMO5+OrtWstINHVGGo6ecKC1OUwtwfbdgtydM7SmKEjjK gBFTa/82Bm4S8y9EOuTsDGu2wyRogLdXCHrD6uixJfBZbviXGmi5gOmBVNHrLXOPtRuW /CW74kVOuqMT92DuNzmDnLpR3TchA4gMArv5Ri4pJe83V38lO35mt4BtLPAEPywywS77 Uv8vAFglIyWB9KcIocOgeWyZBN++WJwhe992TC3DQ3XsdivmBSqtcdzd4557Tw/bVgyb IwKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XII4Uia86+n6PeVajxvDBzKIIcVfvqcewFprO2aSO2w=; b=pbqXusElV5+OnbBYNEqVTyTkTc6ciG4dmp4HgW00NlN0Ep7Q2f8B8mX1bXHk7l5gwv MlzmDMhw+2bQ0vk9YHjPRpYkO+aVr00atQbyu8p39JH1RcMJoMFDjEDSM5fsOqJiCoO5 5wSTUrFeDuqOpIH6fnovGBeIItThDlo28FHo6gc2vIkzD9LzoNKLeYIzFUPDY6G/dfi1 8sCgKhkjcrCdJVQiM+uNRXksl38IbE62P7GtQowwgGsJCOAK3mQ/0gPQ9kMQzB5wNhcN qDFVV11kHUSefqrVn/OQOvzqx5xyF1din8sgRSM1o/cQy0ccBrmbMc8MN95agfAY32iZ nuwA== X-Gm-Message-State: AA+aEWbsLzhxBJeA1Mnq3ktLJvGsp+WFfGcVLromEkBzFBBC68z3lal7 SlRe8RlCWzxH6pcHkLaWoKoDHsOzPFjhQN3tIeI= X-Google-Smtp-Source: AFSGD/X1J93gtbRSFM7L6EWMTZuekfbmKXmkF74/wqWh3T9djtyKtjxaAC/G/LQZG1Cyc4MozjGfhzhPTak6MEZSzzo= X-Received: by 2002:a2e:851a:: with SMTP id j26-v6mr12760707lji.163.1544636875949; Wed, 12 Dec 2018 09:47:55 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::229 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:118981 Archived-At: On Wed, Dec 12, 2018 at 7:25 AM Skip Montanaro wrote: > Recently, I've noticed that the last newline of files seems to be deleted. > Not always, but pretty frequently. I don't know how this would cause randomness in deleting the final newline, but do you have the variable require-final-newline set to nil (default) by any chance. If it is nil, a final newline is not auto-inserted. But if set to t, that final newline is auto inserted on saving a file.