changeset 61488:230af31ce843

whitespace.el - fix higlighting test and bump rev
author Rajesh Vaidheeswarran <rv@gnu.org>
date Mon, 11 Apr 2005 23:25:46 +0000
parents f5e70b5f16ce
children ae95ab9b4867
files lisp/ChangeLog lisp/whitespace.el
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Apr 11 23:12:57 2005 +0000
+++ b/lisp/ChangeLog	Mon Apr 11 23:25:46 2005 +0000
@@ -1,3 +1,10 @@
+2005-04-11  Rajesh Vaidheeswarran  <rv@gnu.org>
+
+	* whitespace.el (whitespace-version): Bump to 3.5
+
+	(whitespace-buffer-leading, whitespace-buffer-trailing): Invert
+	sense of the test to highlight the whitespace.
+
 2005-04-12  Nick Roberts  <nickrob@snap.net.nz>
 
 	* progmodes/gud.el (gud-display-line): GUD uses its own
--- a/lisp/whitespace.el	Mon Apr 11 23:12:57 2005 +0000
+++ b/lisp/whitespace.el	Mon Apr 11 23:25:46 2005 +0000
@@ -86,7 +86,7 @@
 
 ;;; Code:
 
-(defvar whitespace-version "3.4" "Version of the whitespace library.")
+(defvar whitespace-version "3.5" "Version of the whitespace library.")
 
 (defvar whitespace-all-buffer-files nil
   "An associated list of buffers and files checked for whitespace cleanliness.
@@ -597,7 +597,7 @@
       (setq pmin (point))
       (end-of-line)
       (setq pmax (point))
-      (if (equal pmin pmax)
+      (if (not (equal pmin pmax))
 	  (progn
 	    (whitespace-highlight-the-space pmin pmax)
 	    t)
@@ -635,7 +635,7 @@
 	    (setq pmin (point))
 	    (end-of-line)
 	    (setq pmax (point))
-	    (if (equal pmin pmax)
+	    (if (not (equal pmin pmax))
 		(progn
 		  (whitespace-highlight-the-space pmin pmax)
 		  t)