comparison lisp/whitespace.el @ 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 c85ac0c1b8e9
children 875507693e78
comparison
equal deleted inserted replaced
61487:f5e70b5f16ce 61488:230af31ce843
84 ;; `whitespace-cleanup-region' - To cleanup all whitespaces between point 84 ;; `whitespace-cleanup-region' - To cleanup all whitespaces between point
85 ;; and mark in the current buffer. 85 ;; and mark in the current buffer.
86 86
87 ;;; Code: 87 ;;; Code:
88 88
89 (defvar whitespace-version "3.4" "Version of the whitespace library.") 89 (defvar whitespace-version "3.5" "Version of the whitespace library.")
90 90
91 (defvar whitespace-all-buffer-files nil 91 (defvar whitespace-all-buffer-files nil
92 "An associated list of buffers and files checked for whitespace cleanliness. 92 "An associated list of buffers and files checked for whitespace cleanliness.
93 93
94 This is to enable periodic checking of whitespace cleanliness in the files 94 This is to enable periodic checking of whitespace cleanliness in the files
595 (goto-char (point-min)) 595 (goto-char (point-min))
596 (beginning-of-line) 596 (beginning-of-line)
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 (equal pmin pmax) 600 (if (not (equal pmin pmax))
601 (progn 601 (progn
602 (whitespace-highlight-the-space pmin pmax) 602 (whitespace-highlight-the-space pmin pmax)
603 t) 603 t)
604 nil)))) 604 nil))))
605 605
633 (goto-char (- (point) 1)) 633 (goto-char (- (point) 1))
634 (beginning-of-line) 634 (beginning-of-line)
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 (equal pmin pmax) 638 (if (not (equal pmin pmax))
639 (progn 639 (progn
640 (whitespace-highlight-the-space pmin pmax) 640 (whitespace-highlight-the-space pmin pmax)
641 t) 641 t)
642 nil)) 642 nil))
643 nil)))) 643 nil))))