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: delete-trailing-whitespace behavior change? Date: Wed, 12 Dec 2018 06:24:20 -0600 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1544617392 12028 195.159.176.226 (12 Dec 2018 12:23:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 12:23:12 +0000 (UTC) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 13:23:08 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 1gX3Xg-0002yr-6w for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 13:23:08 +0100 Original-Received: from localhost ([::1]:44126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX3Zm-0000ha-Mf for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 07:25:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX3ZN-0000hS-4y for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 07:24:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX3ZL-0001VQ-3G for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 07:24:52 -0500 Original-Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:45192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX3ZJ-0001Sy-CN for help-gnu-emacs@gnu.org; Wed, 12 Dec 2018 07:24:49 -0500 Original-Received: by mail-pf1-x431.google.com with SMTP id g62so8796900pfd.12 for ; Wed, 12 Dec 2018 04:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CjSfxAGKi4ZBMmx16NkNdo5yWfUSiu/Yi6SvkmqEnas=; b=gMSrePnuPY8DA1TbrSFjS3FdKZ9/vm/7nYbJem2JUvcKf2k5ds6Yhw86yV8eaGhpt1 Zwix75Xod3AVWSp+BX2roIypAABi9GhBEDRj8xNKxfV5sSKQjwQ+sQhW2NCm5M4Tx+jm Twyl8nncM7HUDl8c8rKf90gWYPWrlVgbKOrRGQrFKyYZNYkmZcxD5UD92qVhQQXJFHIj RagJGeoHfXivjbfBPJTmP/ZMP//VLN3CY50OZQyYkvJzc7us1s3/TQaZz2A29sj0gRbV 0v+bxUbiqz2+FOdbmHMr15TKYbaK1K5OXbgbb2ifOlTuXumFdKMZjhN5UNRpKQmkmr4J DtEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CjSfxAGKi4ZBMmx16NkNdo5yWfUSiu/Yi6SvkmqEnas=; b=Zn0jnHObnLJBHCLrKmMTzf7hVOxaBwPLWBFxCVvcolRuqLAn+n6fzp9jEvVT1dsV8Y AUg6A/jD+x+fbjeh6scaNfXq9hgKYIxIqILxapDoqfDMrjt4Gonmim90kvCgBFo1Hn4q 2+CnWVxj0ccqV5DOPZJ1Fc8FJsq+UeZVT6D+6RCgl1qN1p9jodCj6NOGRHWelwImSKz8 x7nFK7rJHvn5rQEeuFlGUR10LBbl35v5jJ+JtVDYYzFUuo4a88nFV9Oiymq69AYarCWU NcRV72I0jIxrNQUVRP4CLAzPy2RsYA7G5Sp674URc/uGJwICLMvt3wnDLc8jtE0DITDL /fMw== X-Gm-Message-State: AA+aEWbLCuO45Sw/M4Py6lXCdLWP1VEv+oWckqfCaNO1Yi0CRqBfefrQ wXqpUuRdkjydueaNPpGOoz5bCH7BuQi2oUkSqWdcAu4ISsv8 X-Google-Smtp-Source: AFSGD/X73AEnmJXA/u0J05N0L445czvPxGG82WFDZsr4RNKKh6PeOK08gnG3PouNKr2Y+eNqfgIUWD2uSHXMJ5HM5As= X-Received: by 2002:a63:c447:: with SMTP id m7mr17982957pgg.27.1544617486816; Wed, 12 Dec 2018 04:24:46 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::431 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:118978 Archived-At: I've defined this hook in ~/.emacs for ages (a decade or so, I suspect): (add-hook 'before-save-hook 'delete-trailing-whitespace) Recently, I've noticed that the last newline of files seems to be deleted. Not always, but pretty frequently. I'm running 25.2.2 at home and 25.3.2 at work. I think I switched from 24 to 25 in the past few months. I can't seem to quickly lay my hands on Emacs 24 without going through a download/install cycle, but I wonder if delete-trailing-whitespace might have changed between 24 and 25? Any insight would be appreciated... Skip Montanaro