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

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

Emacs 22: ediff-whitespace is missing some whitespace characters


From: Michael Ernst
Subject: Emacs 22: ediff-whitespace is missing some whitespace characters
Date: Sat, 1 Apr 2006 13:47:49 -0500

Ediff should consider \r, which is used by DOS (and Mac) to terminate
lines, and \240, which is the Unicode non-breaking space, as whitespace
characters.  Doing so greatly improves the visual results.  Or, if there is
some reason that they are omitted, that should be indicated in the source
code, so that others don't wonder at the reason for the sub-optimal
results.

                    -Michael Ernst
                     address@hidden


2006-04-01  Michael Ernst  <address@hidden>

        * ediff-diff.el (ediff-whitespace): Consider carriage return and
        non-breaking space to be white space.


--- /afs/csail.mit.edu/u/m/mernst/bin/src/emacs-22/emacs/lisp/ediff-diff.el     
2006-03-20 15:58:32.000000000 -0500
+++ -   2006-04-01 13:42:45.998724000 -0500
@@ -1326,7 +1326,7 @@
 Used for splitting difference regions into individual words.")
 (make-variable-buffer-local 'ediff-forward-word-function)
 
-(defvar ediff-whitespace " \n\t\f"
+(defvar ediff-whitespace " \n\t\f\r\240"
   "*Characters constituting white space.
 These characters are ignored when differing regions are split into words.")
 (make-variable-buffer-local 'ediff-whitespace)





reply via email to

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