bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compare-windows wrong about whitespace


From: Michael Ernst
Subject: compare-windows wrong about whitespace
Date: Mon, 25 Mar 2002 17:16:31 -0500

In Emacs 21.2, `compare-windows' does not consider \r, \240, etc. to be
whitespace.  That causes it to report spurious differences when instructed
to ignore whitespace.  The below patch corrects the problem.


2002-03-24  Michael Ernst  <mernst@alum.mit.edu>

        * compare-w.el (compare-windows-whitespace): Respect all
        whitespace.


*** /usr/local/share/emacs/21.2/lisp/compare-w.el       Sun Jul 15 12:15:34 2001
--- -   Sun Mar 24 00:03:01 2002
***************
*** 36,40 ****
    :group 'tools)
  
! (defcustom compare-windows-whitespace "[ \t\n]+"
    "*Regexp that defines whitespace sequences for \\[compare-windows].
  Changes in whitespace are optionally ignored.
--- 36,40 ----
    :group 'tools)
  
! (defcustom compare-windows-whitespace "\\s-+"
    "*Regexp that defines whitespace sequences for \\[compare-windows].
  Changes in whitespace are optionally ignored.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]