From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: show whitespace problems by default in diff-mode Date: Thu, 16 Jul 2009 15:14:50 -0700 (PDT) Message-ID: <200907162214.n6GMEo5o025706@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247782734 4046 80.91.229.12 (16 Jul 2009 22:18:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2009 22:18:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 17 00:18:47 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MRZHq-0002a2-Bn for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2009 00:18:46 +0200 Original-Received: from localhost ([127.0.0.1]:38688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRZHp-0004dp-Mq for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2009 18:18:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRZFw-000449-CZ for emacs-devel@gnu.org; Thu, 16 Jul 2009 18:16:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRZFq-00040R-8n for emacs-devel@gnu.org; Thu, 16 Jul 2009 18:16:48 -0400 Original-Received: from [199.232.76.173] (port=57144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRZFp-00040H-Qx for emacs-devel@gnu.org; Thu, 16 Jul 2009 18:16:42 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:61934) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MRZFo-0000Ld-JE for emacs-devel@gnu.org; Thu, 16 Jul 2009 18:16:41 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n6GMEog0005993 for ; Thu, 16 Jul 2009 15:14:50 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n6GMEo5o025706; Thu, 16 Jul 2009 15:14:50 -0700 (PDT) Original-Lines: 12 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n6GMEog0005993 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112569 Archived-At: diff-mode is set up to show trailing whitespace problems, but it's not doing it by default, to enable this one has to do: (add-hook 'diff-mode-hook 'whitespace-mode) Vinicius also posted a patch to edit files to clean the trailing whitespace problems based on the diff. Why not turn on whitespace-mode by default in diff-mode? It makes spotting whitespace problems very easy, and will make it also easy to fix.