diff options
| author | Juri Linkov | 2004-12-16 07:16:17 +0000 |
|---|---|---|
| committer | Juri Linkov | 2004-12-16 07:16:17 +0000 |
| commit | aaaecfcda1d58125879a1111e1f338e3866ee655 (patch) | |
| tree | 749171f405efa2e43b2796ce2c23d077bc0e6043 | |
| parent | 333f1b6f78ea3923fd49c8bb7f4d4aef39549591 (diff) | |
| download | emacs-aaaecfcda1d58125879a1111e1f338e3866ee655.tar.gz emacs-aaaecfcda1d58125879a1111e1f338e3866ee655.zip | |
(match): New face.
(list-matching-lines-face): Change default from `bold' to `match'.
| -rw-r--r-- | lisp/replace.el | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 6ba2e7e9aa8..872e5e290a8 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -752,6 +752,20 @@ Compatibility function for \\[next-error] invocations." | |||
| 752 | (set-window-point (get-buffer-window (current-buffer)) (point)) | 752 | (set-window-point (get-buffer-window (current-buffer)) (point)) |
| 753 | (occur-mode-goto-occurrence))) | 753 | (occur-mode-goto-occurrence))) |
| 754 | 754 | ||
| 755 | (defface match | ||
| 756 | '((((class color) (min-colors 88) (background light)) | ||
| 757 | :background "Tan") | ||
| 758 | (((class color) (min-colors 88) (background dark)) | ||
| 759 | :background "RoyalBlue4") | ||
| 760 | (((class color) (min-colors 8)) | ||
| 761 | :background "blue" :foreground "white") | ||
| 762 | (((type tty) (class mono)) | ||
| 763 | :inverse-video t) | ||
| 764 | (t :background "gray")) | ||
| 765 | "Face used to highlight matches permanently." | ||
| 766 | :group 'matching | ||
| 767 | :version "21.4") | ||
| 768 | |||
| 755 | (defcustom list-matching-lines-default-context-lines 0 | 769 | (defcustom list-matching-lines-default-context-lines 0 |
| 756 | "*Default number of context lines included around `list-matching-lines' matches. | 770 | "*Default number of context lines included around `list-matching-lines' matches. |
| 757 | A negative number means to include that many lines before the match. | 771 | A negative number means to include that many lines before the match. |
| @@ -761,7 +775,7 @@ A positive number means to include that many lines both before and after." | |||
| 761 | 775 | ||
| 762 | (defalias 'list-matching-lines 'occur) | 776 | (defalias 'list-matching-lines 'occur) |
| 763 | 777 | ||
| 764 | (defcustom list-matching-lines-face 'bold | 778 | (defcustom list-matching-lines-face 'match |
| 765 | "*Face used by \\[list-matching-lines] to show the text that matches. | 779 | "*Face used by \\[list-matching-lines] to show the text that matches. |
| 766 | If the value is nil, don't highlight the matching portions specially." | 780 | If the value is nil, don't highlight the matching portions specially." |
| 767 | :type 'face | 781 | :type 'face |