From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Checking in files with trailing white space Date: Mon, 21 Mar 2016 11:09:39 -0700 Organization: UCLA Computer Science Department Message-ID: <56F038E3.2080003@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1458583800 20931 80.91.229.3 (21 Mar 2016 18:10:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 18:10:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 19:09:53 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ai4H1-0000ru-Tf for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 19:09:52 +0100 Original-Received: from localhost ([::1]:59598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4H1-0004Bx-4l for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 14:09:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4Gx-0004Bf-69 for emacs-devel@gnu.org; Mon, 21 Mar 2016 14:09:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai4Gs-0004YH-83 for emacs-devel@gnu.org; Mon, 21 Mar 2016 14:09:47 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4Gs-0004Xk-2I for emacs-devel@gnu.org; Mon, 21 Mar 2016 14:09:42 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DFD9616120A; Mon, 21 Mar 2016 11:09:40 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UnpEj-I4yQcF; Mon, 21 Mar 2016 11:09:40 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3935F161126; Mon, 21 Mar 2016 11:09:40 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CFud-MiSlGD3; Mon, 21 Mar 2016 11:09:40 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 13128160175; Mon, 21 Mar 2016 11:09:40 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202018 Archived-At: Lars Magne Ingebrigtsen wrote: > Having the test and result files be HTML and text files is much easier > to work with. Another possibility is to design your own escape convention for trailing white space and remove it just before the test. You could strip backslash just before newline, say. This will be more robust in the presence of tools that routinely strip trailing white space. If you do keep trailing whitespace, please check that it survives editing the file by an Emacs configured something like this: (setq whitespace-action '(auto-cleanup)) (setq whitespace-style '(trailing empty)) (global-whitespace-mode t) as this is how I edit Emacs source code. I assume you can do this by setting local variables in the affected files.