From: Rajesh Vaidheeswarran Date: Mon, 11 Apr 2005 23:47:54 +0000 (+0000) Subject: whitespace.el - revert hasty fix, fix highlight area for leading and trailing space. X-Git-Tag: ttn-vms-21-2-B4~1047 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=df5e8d2c04276e6d5815543e19699afc6f5f6377;p=emacs.git whitespace.el - revert hasty fix, fix highlight area for leading and trailing space. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 998f115b97f..1f644cbea26 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -7,6 +7,13 @@ * generic.el (generic-make-keywords-list): Fix docstring. (generic-mode-internal): Simplify generic-font-lock-keywords. +2005-04-11 Rajesh Vaidheeswarran + + * whitespace.el (whitespace-buffer-leading, + whitespace-buffer-trailing): Revert the incorrect test + inversion. However, fix the highlight area for the leading and + trailing whitespaces to show space. + 2005-04-11 Rajesh Vaidheeswarran * whitespace.el (whitespace-version): Bump to 3.5 diff --git a/lisp/whitespace.el b/lisp/whitespace.el index b052a3e3460..c0d9280a441 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -597,9 +597,9 @@ whitespace problems." (setq pmin (point)) (end-of-line) (setq pmax (point)) - (if (not (equal pmin pmax)) + (if (equal pmin pmax) (progn - (whitespace-highlight-the-space pmin pmax) + (whitespace-highlight-the-space pmin (1+ pmax)) t) nil)))) @@ -635,9 +635,9 @@ whitespace problems." (setq pmin (point)) (end-of-line) (setq pmax (point)) - (if (not (equal pmin pmax)) + (if (equal pmin pmax) (progn - (whitespace-highlight-the-space pmin pmax) + (whitespace-highlight-the-space (- pmin 1) pmax) t) nil)) nil))))