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: diff-mode and whitespace-mode Date: Sun, 4 Jan 2009 11:52:44 -0800 (PST) Message-ID: <200901041952.n04JqiUx021998@mothra.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 1231098800 6683 80.91.229.12 (4 Jan 2009 19:53:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2009 19:53:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 04 20:54:31 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 1LJZ3H-0005EH-Ki for ged-emacs-devel@m.gmane.org; Sun, 04 Jan 2009 20:54:23 +0100 Original-Received: from localhost ([127.0.0.1]:47704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJZ22-00032L-Bd for ged-emacs-devel@m.gmane.org; Sun, 04 Jan 2009 14:53:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJZ1x-00031v-65 for emacs-devel@gnu.org; Sun, 04 Jan 2009 14:53:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJZ1w-00031j-Da for emacs-devel@gnu.org; Sun, 04 Jan 2009 14:53:00 -0500 Original-Received: from [199.232.76.173] (port=47481 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJZ1w-00031g-7P for emacs-devel@gnu.org; Sun, 04 Jan 2009 14:53:00 -0500 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:65163) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LJZ1v-0001pa-LZ for emacs-devel@gnu.org; Sun, 04 Jan 2009 14:52:59 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n04Jqi3H022553 for ; Sun, 4 Jan 2009 11:52:44 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n04JqiUx021998; Sun, 4 Jan 2009 11:52:44 -0800 (PST) Original-Lines: 11 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n04Jqi3H022553 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@mothra.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:107578 Archived-At: `diff-show-trailing-whitespaces' sets `whitespace-style' and `whitespace-trailing-regexp' and then calls `whitespace-mode'. `diff-mode' could set those 2 variables, and then calling `whitespace-mode' would show trailing whitespaces in diff-mode, and the `diff-show-trailing-whitespaces' function could be removed. The above would work if whitespace-style and whitespace-trailing-regexp were not used for some other purpose in conjunction with diff-mode. Stefan asks if that is indeed the case.