Mercurial > emacs
comparison lisp/diff-mode.el @ 85210:782f0bc49c07
* diff-mode.el (diff-fine-change): Add :group.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sat, 13 Oct 2007 00:07:23 +0000 |
parents | 8d5ae38b1b47 |
children | 3bc55977b5f8 d38543a1c0f9 |
comparison
equal
deleted
inserted
replaced
85209:c4472165ba35 | 85210:782f0bc49c07 |
---|---|
1651 | 1651 |
1652 ;;; Fine change highlighting. | 1652 ;;; Fine change highlighting. |
1653 | 1653 |
1654 (defface diff-fine-change | 1654 (defface diff-fine-change |
1655 '((t :background "yellow")) | 1655 '((t :background "yellow")) |
1656 "Face used for char-based changes shown by `diff-fine-highlight'.") | 1656 "Face used for char-based changes shown by `diff-fine-highlight'." |
1657 :group 'diff-mode) | |
1657 | 1658 |
1658 (defun diff-fine-highlight-preproc () | 1659 (defun diff-fine-highlight-preproc () |
1659 (while (re-search-forward "^." nil t) | 1660 (while (re-search-forward "^." nil t) |
1660 ;; Replace the hunk's leading prefix (+, -, !, <, or >) on each line | 1661 ;; Replace the hunk's leading prefix (+, -, !, <, or >) on each line |
1661 ;; with something constant, otherwise it'll be flagged as changes | 1662 ;; with something constant, otherwise it'll be flagged as changes |