aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Vaidheeswarran2005-04-11 23:47:54 +0000
committerRajesh Vaidheeswarran2005-04-11 23:47:54 +0000
commitdf5e8d2c04276e6d5815543e19699afc6f5f6377 (patch)
treef152bda2399d2ec400a30d16419154f53ecfbf19
parent4d88e0ade83e1b7e6e7df2ab70c50210a4e6983c (diff)
downloademacs-df5e8d2c04276e6d5815543e19699afc6f5f6377.tar.gz
emacs-df5e8d2c04276e6d5815543e19699afc6f5f6377.zip
whitespace.el - revert hasty fix, fix highlight area for leading and trailing space.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/whitespace.el8
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 998f115b97f..1f644cbea26 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -9,6 +9,13 @@
9 9
102005-04-11 Rajesh Vaidheeswarran <rv@gnu.org> 102005-04-11 Rajesh Vaidheeswarran <rv@gnu.org>
11 11
12 * whitespace.el (whitespace-buffer-leading,
13 whitespace-buffer-trailing): Revert the incorrect test
14 inversion. However, fix the highlight area for the leading and
15 trailing whitespaces to show space.
16
172005-04-11 Rajesh Vaidheeswarran <rv@gnu.org>
18
12 * whitespace.el (whitespace-version): Bump to 3.5 19 * whitespace.el (whitespace-version): Bump to 3.5
13 20
14 (whitespace-buffer-leading, whitespace-buffer-trailing): Invert 21 (whitespace-buffer-leading, whitespace-buffer-trailing): Invert
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."
597 (setq pmin (point)) 597 (setq pmin (point))
598 (end-of-line) 598 (end-of-line)
599 (setq pmax (point)) 599 (setq pmax (point))
600 (if (not (equal pmin pmax)) 600 (if (equal pmin pmax)
601 (progn 601 (progn
602 (whitespace-highlight-the-space pmin pmax) 602 (whitespace-highlight-the-space pmin (1+ pmax))
603 t) 603 t)
604 nil)))) 604 nil))))
605 605
@@ -635,9 +635,9 @@ whitespace problems."
635 (setq pmin (point)) 635 (setq pmin (point))
636 (end-of-line) 636 (end-of-line)
637 (setq pmax (point)) 637 (setq pmax (point))
638 (if (not (equal pmin pmax)) 638 (if (equal pmin pmax)
639 (progn 639 (progn
640 (whitespace-highlight-the-space pmin pmax) 640 (whitespace-highlight-the-space (- pmin 1) pmax)
641 t) 641 t)
642 nil)) 642 nil))
643 nil)))) 643 nil))))