diff options
| author | Miles Bader | 2000-08-17 00:51:39 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-08-17 00:51:39 +0000 |
| commit | a0b8c9399c0ad10564b9a2aa5ecfd7eef1ca976e (patch) | |
| tree | ed4a5f99ce670324c658685079d43e4e1fdf167b | |
| parent | 0309803d6a9b331d6062be47ba3b4034a2f774a4 (diff) | |
| download | emacs-a0b8c9399c0ad10564b9a2aa5ecfd7eef1ca976e.tar.gz emacs-a0b8c9399c0ad10564b9a2aa5ecfd7eef1ca976e.zip | |
(hi-yellow, hi-pink, hi-green, hi-blue): Force the foreground color to
black if the default background is dark.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/hi-lock.el | 12 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd0dd24005e..59e9c53431c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-08-17 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * hi-lock.el (hi-yellow, hi-pink, hi-green, hi-blue): Force the | ||
| 4 | foreground color to black if the background is dark. | ||
| 5 | |||
| 1 | 2000-08-16 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2000-08-16 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 7 | ||
| 3 | * loadhist.el (unload-feature): Typo. | 8 | * loadhist.el (unload-feature): Typo. |
| @@ -79,7 +84,7 @@ | |||
| 79 | 84 | ||
| 80 | 2000-08-16 Sam Steingold <sds@gnu.org> | 85 | 2000-08-16 Sam Steingold <sds@gnu.org> |
| 81 | 86 | ||
| 82 | * buff-menu.el (list-buffers-noselect): Use `dolist' instead of | 87 | * buff-menu.el (list-buffers-noselect): Use `dolist' instead Of |
| 83 | `while'; use `with-current-buffer' instead of `save-excursion'. | 88 | `while'; use `with-current-buffer' instead of `save-excursion'. |
| 84 | Removed unnecessary kludges now that "*Buffer List*" is excluded. | 89 | Removed unnecessary kludges now that "*Buffer List*" is excluded. |
| 85 | 90 | ||
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index f2a77b620c7..c56c68c7746 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el | |||
| @@ -119,22 +119,26 @@ calls." | |||
| 119 | :group 'hi-lock-interactive-text-highlighting) | 119 | :group 'hi-lock-interactive-text-highlighting) |
| 120 | 120 | ||
| 121 | (defface hi-yellow | 121 | (defface hi-yellow |
| 122 | '((t (:background "yellow"))) | 122 | '((((background dark)) (:background "yellow" :foreground "black")) |
| 123 | (t (:background "yellow"))) | ||
| 123 | "Default face for hi-lock mode." | 124 | "Default face for hi-lock mode." |
| 124 | :group 'hi-lock-faces) | 125 | :group 'hi-lock-faces) |
| 125 | 126 | ||
| 126 | (defface hi-pink | 127 | (defface hi-pink |
| 127 | '((t (:background "pink"))) | 128 | '(((background dark) (:background "pink" :foreground "black")) |
| 129 | (t (:background "pink"))) | ||
| 128 | "Face for hi-lock mode." | 130 | "Face for hi-lock mode." |
| 129 | :group 'hi-lock-faces) | 131 | :group 'hi-lock-faces) |
| 130 | 132 | ||
| 131 | (defface hi-green | 133 | (defface hi-green |
| 132 | '((t (:background "green"))) | 134 | '(((background dark) (:background "green" :foreground "black")) |
| 135 | (t (:background "green"))) | ||
| 133 | "Face for hi-lock mode." | 136 | "Face for hi-lock mode." |
| 134 | :group 'hi-lock-faces) | 137 | :group 'hi-lock-faces) |
| 135 | 138 | ||
| 136 | (defface hi-blue | 139 | (defface hi-blue |
| 137 | '((t (:background "light blue"))) | 140 | '(((background dark) (:background "light blue" :foreground "black")) |
| 141 | (t (:background "light blue"))) | ||
| 138 | "Face for hi-lock mode." | 142 | "Face for hi-lock mode." |
| 139 | :group 'hi-lock-faces) | 143 | :group 'hi-lock-faces) |
| 140 | 144 | ||