From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: delete-trailing-whitespace behavior change? Date: Wed, 12 Dec 2018 21:51:05 -0600 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" X-Trace: blaine.gmane.org 1544672998 13761 195.159.176.226 (13 Dec 2018 03:49:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2018 03:49:58 +0000 (UTC) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 13 04:49:54 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 1gXI0Y-0003Uh-D2 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Dec 2018 04:49:54 +0100 Original-Received: from localhost ([::1]:50162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXI2f-0001JP-2O for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 22:52:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXI2A-0001JG-N9 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 22:51:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXI29-0008B7-J3 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 22:51:34 -0500 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:46462) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXI29-00089h-84 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 22:51:33 -0500 Original-Received: by mail-pf1-x42c.google.com with SMTP id c73so369973pfe.13 for ; Wed, 12 Dec 2018 19:51:33 -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; bh=TiTWlYAp3zgJ6JeD+Rary6nPF6lFDtwME4aESYhH45Y=; b=hlaz1n9NdtBev2KXp2+SEbcJDABPuR40yuQBLq3NztjZq0sbKhn2dkFpqc3m3X8oE1 26O0SLBq0dipEGT1y16rUGJZeWMkc31EglI+HscovYfHgXNCD0sRTTyAXDhWesOUs9QB XW+eVg1C0jO/WGA2eIAWCFhVS/1FwfSllTinOhDOCfcNjYZ9aCbQjB8za4G/vIOsY3tW Dr+zOKN5NPpxNiLciVqYndGAcMf6Bm/fFgMUbKth4ZBYPFPpLesx1V6uOPi0Fki7klr5 OFGyerYu6paaF4AgcGqO0v38B/YjPL3t04PuDmNAvCqTAqMJ9CRqLmaLttPly8nqPLzB MfEw== 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; bh=TiTWlYAp3zgJ6JeD+Rary6nPF6lFDtwME4aESYhH45Y=; b=bdyqEBkd44+crMuuYeSWfoqzBGqoEkTYDsugFdkGrSC/vbNZIy4Rwg/MbgLJMI1xhy L/gma6xpbHE1L6We2QY8n0NV83c8sGKsGML56IS21v6kDPMjlWUkD0u+mGjcCA0ByrBh 6lXdA+Kcm56E+KcuB/44hiUl1NbgVmtx4yI/8cjSaMzXnQvhmszfawPW1VBBEoQl1vjH vVtXkcQVlcz5lk6uNFPELFyxXhndUiUph0md3mlRF2ZrM/2A3dULLejOkvh4aGnDTdzq N8LsXRdkkkc+ZAjVylnDNw7QqIYhSLgK7PpIUMmWpc72/ZnZbRAemyKsZ4G6vRtCHzOc Ywfw== X-Gm-Message-State: AA+aEWZ5minXd8Uq0tl38N+2p3idT5/1lT98jlg1FR+IOgrCJBk9MRPD ozK3XTn3VRDuU2hdZIHD5BI0ygG8mxlT+0bd06o5iS9sFA== X-Google-Smtp-Source: AFSGD/WhWGWhS52JP415DY93dVRhB867uBl+ZVb971JteKyYKuXqd5b5k+i4HCj7BwvB9Iea256XwitCuzTySzIOBfU= X-Received: by 2002:a62:a99:: with SMTP id 25mr22291399pfk.121.1544673091537; Wed, 12 Dec 2018 19:51:31 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42c 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:118986 Archived-At: Thanks for the responses. This has been going on for awhile now, and precisely because of that randomness Kaushal mentioned, I've been hesitant to report the problem before. I can't say that it happens only at work, or at work and at home. I'm not even certain it's an Emacs issue. It's possible some something injected into the toolchain (maybe a git hook?) has been wreaking havoc with final newlines. Alas, most other people at work are vim users (and don't write much Python code) and could care less about extra whitespace, so my before-write-hook often deletes a few spaces. Regarding variables, both delete-trailing-lines and require-final-newline are t. Neither is tweaked in ~/.emacs. Skip