diff options
| author | Bill Wohler | 2006-02-17 03:57:57 +0000 |
|---|---|---|
| committer | Bill Wohler | 2006-02-17 03:57:57 +0000 |
| commit | 6d21875b1f1fbb570ffefdfb93c8ff444a593348 (patch) | |
| tree | 3342b632dafeefed78e6cbf6c4d75b313d825ef5 | |
| parent | c92374022ecc5c436bf9521f491fa14808267107 (diff) | |
| download | emacs-6d21875b1f1fbb570ffefdfb93c8ff444a593348.tar.gz emacs-6d21875b1f1fbb570ffefdfb93c8ff444a593348.zip | |
(mh-inherit-face-flag): New variable. Non-nil means that the defface
:inherit keyword is available.
(mh-face-data): New variable (contains
all face specs) and function (accessor).
(mh-folder-address, mh-folder-body, mh-folder-cur-msg-number)
(mh-folder-date, mh-folder-deleted, mh-folder-followup)
(mh-folder-msg-number, mh-folder-refiled)
(mh-folder-sent-to-me-hint, mh-folder-sent-to-me-sender)
(mh-folder-subject, mh-folder-tick, mh-folder-to)
(mh-search-folder, mh-letter-header-field, mh-show-cc)
(mh-show-date, mh-show-from)
(mh-show-header, mh-show-pgg-bad, mh-show-pgg-good)
(mh-show-pgg-unknown, mh-show-signature, mh-show-subject)
(mh-show-to, mh-show-xface, mh-speedbar-folder)
(mh-speedbar-folder-with-unseen-messages)
(mh-speedbar-selected-folder)
(mh-speedbar-selected-folder-with-unseen-messages): Use mh-face-data.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 386 |
2 files changed, 237 insertions, 168 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 67fd051fda8..e5262693d8a 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,5 +1,24 @@ | |||
| 1 | 2006-02-16 Bill Wohler <wohler@newt.com> | 1 | 2006-02-16 Bill Wohler <wohler@newt.com> |
| 2 | 2 | ||
| 3 | * mh-e.el (mh-inherit-face-flag): New variable. Non-nil means that | ||
| 4 | the defface :inherit keyword is available. | ||
| 5 | (mh-face-data): New variable (contains all face specs) and | ||
| 6 | function (accessor). | ||
| 7 | (mh-folder-address, mh-folder-body, mh-folder-cur-msg-number) | ||
| 8 | (mh-folder-date, mh-folder-deleted, mh-folder-followup) | ||
| 9 | (mh-folder-msg-number, mh-folder-refiled) | ||
| 10 | (mh-folder-sent-to-me-hint, mh-folder-sent-to-me-sender) | ||
| 11 | (mh-folder-subject, mh-folder-tick, mh-folder-to) | ||
| 12 | (mh-search-folder, mh-letter-header-field, mh-show-cc) | ||
| 13 | (mh-show-date, mh-show-from) | ||
| 14 | (mh-show-header, mh-show-pgg-bad, mh-show-pgg-good) | ||
| 15 | (mh-show-pgg-unknown, mh-show-signature, mh-show-subject) | ||
| 16 | (mh-show-to, mh-show-xface, mh-speedbar-folder) | ||
| 17 | (mh-speedbar-folder-with-unseen-messages) | ||
| 18 | (mh-speedbar-selected-folder) | ||
| 19 | (mh-speedbar-selected-folder-with-unseen-messages): Use | ||
| 20 | mh-face-data. | ||
| 21 | |||
| 3 | * mh-utils.el (mh-image-load-path): The variables image-load-path | 22 | * mh-utils.el (mh-image-load-path): The variables image-load-path |
| 4 | or load-path would not get updated if user set mh-image-load-path. | 23 | or load-path would not get updated if user set mh-image-load-path. |
| 5 | Moved tests and add-to-list calls outside of cond so they are | 24 | Moved tests and add-to-list calls outside of cond so they are |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index ab0143c0c85..26b1ddd8050 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -2968,6 +2968,8 @@ sequence." | |||
| 2968 | (if (boundp 'facemenu-unlisted-faces) | 2968 | (if (boundp 'facemenu-unlisted-faces) |
| 2969 | (add-to-list 'facemenu-unlisted-faces "^mh-")) | 2969 | (add-to-list 'facemenu-unlisted-faces "^mh-")) |
| 2970 | 2970 | ||
| 2971 | ;; Temporary function and data structure used for defining faces. | ||
| 2972 | ;; These will be unbound after the faces are defined. | ||
| 2971 | (defvar mh-min-colors-defined-flag (and (not mh-xemacs-flag) | 2973 | (defvar mh-min-colors-defined-flag (and (not mh-xemacs-flag) |
| 2972 | (>= emacs-major-version 22)) | 2974 | (>= emacs-major-version 22)) |
| 2973 | "Non-nil means defface supports min-colors display requirement.") | 2975 | "Non-nil means defface supports min-colors display requirement.") |
| @@ -2999,80 +3001,217 @@ colors." | |||
| 2999 | (setq new-spec (cons entry new-spec))))) | 3001 | (setq new-spec (cons entry new-spec))))) |
| 3000 | new-spec))) | 3002 | new-spec))) |
| 3001 | 3003 | ||
| 3002 | (defface mh-folder-address '((t (:inherit mh-folder-subject))) | 3004 | (defvar mh-inherit-face-flag (assq :inherit custom-face-attributes) |
| 3005 | "Non-nil means that the `defface' :inherit keyword is available. | ||
| 3006 | The :inherit keyword is available on all supported versions of | ||
| 3007 | GNU Emacs and XEmacs from at least 21.5.23 on.") | ||
| 3008 | |||
| 3009 | (defvar mh-face-data | ||
| 3010 | '((mh-folder-followup | ||
| 3011 | ((((class color) (background light)) | ||
| 3012 | (:foreground "blue3")) | ||
| 3013 | (((class color) (background dark)) | ||
| 3014 | (:foreground "LightGoldenRod")) | ||
| 3015 | (t | ||
| 3016 | (:bold t)))) | ||
| 3017 | (mh-folder-msg-number | ||
| 3018 | ((((class color) (min-colors 64) (background light)) | ||
| 3019 | (:foreground "snow4")) | ||
| 3020 | (((class color) (min-colors 64) (background dark)) | ||
| 3021 | (:foreground "snow3")) | ||
| 3022 | (((class color)) | ||
| 3023 | (:foreground "cyan")))) | ||
| 3024 | (mh-folder-refiled | ||
| 3025 | ((((class color) (min-colors 64) (background light)) | ||
| 3026 | (:foreground "DarkGoldenrod")) | ||
| 3027 | (((class color) (min-colors 64) (background dark)) | ||
| 3028 | (:foreground "LightGoldenrod")) | ||
| 3029 | (((class color)) | ||
| 3030 | (:foreground "yellow" :weight light)) | ||
| 3031 | (((class grayscale) (background light)) | ||
| 3032 | (:foreground "Gray90" :bold t :italic t)) | ||
| 3033 | (((class grayscale) (background dark)) | ||
| 3034 | (:foreground "DimGray" :bold t :italic t)) | ||
| 3035 | (t | ||
| 3036 | (:bold t :italic t)))) | ||
| 3037 | (mh-folder-subject | ||
| 3038 | ((((class color) (background light)) | ||
| 3039 | (:foreground "blue4")) | ||
| 3040 | (((class color) (background dark)) | ||
| 3041 | (:foreground "yellow")) | ||
| 3042 | (t | ||
| 3043 | (:bold t)))) | ||
| 3044 | (mh-folder-tick | ||
| 3045 | ((((class color) (background dark)) | ||
| 3046 | (:background "#dddf7e")) | ||
| 3047 | (((class color) (background light)) | ||
| 3048 | (:background "#dddf7e")) | ||
| 3049 | (t | ||
| 3050 | (:underline t)))) | ||
| 3051 | (mh-folder-to | ||
| 3052 | ((((class color) (min-colors 64) (background light)) | ||
| 3053 | (:foreground "RosyBrown")) | ||
| 3054 | (((class color) (min-colors 64) (background dark)) | ||
| 3055 | (:foreground "LightSalmon")) | ||
| 3056 | (((class color)) | ||
| 3057 | (:foreground "green")) | ||
| 3058 | (((class grayscale) (background light)) | ||
| 3059 | (:foreground "DimGray" :italic t)) | ||
| 3060 | (((class grayscale) (background dark)) | ||
| 3061 | (:foreground "LightGray" :italic t)) | ||
| 3062 | (t | ||
| 3063 | (:italic t)))) | ||
| 3064 | (mh-letter-header-field | ||
| 3065 | ((((class color) (background light)) | ||
| 3066 | (:background "gray90")) | ||
| 3067 | (((class color) (background dark)) | ||
| 3068 | (:background "gray10")) | ||
| 3069 | (t | ||
| 3070 | (:bold t)))) | ||
| 3071 | (mh-search-folder | ||
| 3072 | ((((class color) (background light)) | ||
| 3073 | (:foreground "dark green" :bold t)) | ||
| 3074 | (((class color) (background dark)) | ||
| 3075 | (:foreground "indian red" :bold t)) | ||
| 3076 | (t | ||
| 3077 | (:bold t)))) | ||
| 3078 | (mh-show-cc | ||
| 3079 | ((((class color) (min-colors 64) (background light)) | ||
| 3080 | (:foreground "DarkGoldenrod")) | ||
| 3081 | (((class color) (min-colors 64) (background dark)) | ||
| 3082 | (:foreground "LightGoldenrod")) | ||
| 3083 | (((class color)) | ||
| 3084 | (:foreground "yellow" :weight light)) | ||
| 3085 | (((class grayscale) (background light)) | ||
| 3086 | (:foreground "Gray90" :bold t :italic t)) | ||
| 3087 | (((class grayscale) (background dark)) | ||
| 3088 | (:foreground "DimGray" :bold t :italic t)) | ||
| 3089 | (t | ||
| 3090 | (:bold t :italic t)))) | ||
| 3091 | (mh-show-date | ||
| 3092 | ((((class color) (min-colors 64) (background light)) | ||
| 3093 | (:foreground "ForestGreen")) | ||
| 3094 | (((class color) (min-colors 64) (background dark)) | ||
| 3095 | (:foreground "PaleGreen")) | ||
| 3096 | (((class color)) | ||
| 3097 | (:foreground "green")) | ||
| 3098 | (((class grayscale) (background light)) | ||
| 3099 | (:foreground "Gray90" :bold t)) | ||
| 3100 | (((class grayscale) (background dark)) | ||
| 3101 | (:foreground "DimGray" :bold t)) | ||
| 3102 | (t | ||
| 3103 | (:bold t :underline t)))) | ||
| 3104 | (mh-show-from | ||
| 3105 | ((((class color) (background light)) | ||
| 3106 | (:foreground "red3")) | ||
| 3107 | (((class color) (background dark)) | ||
| 3108 | (:foreground "cyan")) | ||
| 3109 | (t | ||
| 3110 | (:bold t)))) | ||
| 3111 | (mh-show-header | ||
| 3112 | ((((class color) (min-colors 64) (background light)) | ||
| 3113 | (:foreground "RosyBrown")) | ||
| 3114 | (((class color) (min-colors 64) (background dark)) | ||
| 3115 | (:foreground "LightSalmon")) | ||
| 3116 | (((class color)) | ||
| 3117 | (:foreground "green")) | ||
| 3118 | (((class grayscale) (background light)) | ||
| 3119 | (:foreground "DimGray" :italic t)) | ||
| 3120 | (((class grayscale) (background dark)) | ||
| 3121 | (:foreground "LightGray" :italic t)) | ||
| 3122 | (t | ||
| 3123 | (:italic t)))) | ||
| 3124 | (mh-show-pgg-bad ((t (:bold t :foreground "DeepPink1")))) | ||
| 3125 | (mh-show-pgg-good ((t (:bold t :foreground "LimeGreen")))) | ||
| 3126 | (mh-show-pgg-unknown ((t (:bold t :foreground "DarkGoldenrod2")))) | ||
| 3127 | (mh-show-signature ((t (:italic t)))) | ||
| 3128 | (mh-show-to | ||
| 3129 | ((((class color) (background light)) | ||
| 3130 | (:foreground "SaddleBrown")) | ||
| 3131 | (((class color) (background dark)) | ||
| 3132 | (:foreground "burlywood")) | ||
| 3133 | (((class grayscale) (background light)) | ||
| 3134 | (:foreground "DimGray" :underline t)) | ||
| 3135 | (((class grayscale) (background dark)) | ||
| 3136 | (:foreground "LightGray" :underline t)) | ||
| 3137 | (t (:underline t)))) | ||
| 3138 | (mh-speedbar-folder | ||
| 3139 | ((((class color) (background light)) | ||
| 3140 | (:foreground "blue4")) | ||
| 3141 | (((class color) (background dark)) | ||
| 3142 | (:foreground "light blue")))) | ||
| 3143 | (mh-speedbar-selected-folder | ||
| 3144 | ((((class color) (background light)) | ||
| 3145 | (:foreground "red1" :underline t)) | ||
| 3146 | (((class color) (background dark)) | ||
| 3147 | (:foreground "red1" :underline t)) | ||
| 3148 | (t | ||
| 3149 | (:underline t)))))) | ||
| 3150 | |||
| 3151 | (defun mh-face-data (face &optional inherit) | ||
| 3152 | "Return spec for FACE. | ||
| 3153 | If INHERIT is non-nil and `defface' supports the :inherit | ||
| 3154 | keyword, return INHERIT literally; otherwise, return spec for FACE. | ||
| 3155 | |||
| 3156 | This isn't a perfect implementation. In the case that | ||
| 3157 | the :inherit keyword is not supported, any additional attributes | ||
| 3158 | in the inherit parameter are not added to the returned spec." | ||
| 3159 | (if (and inherit mh-inherit-face-flag) | ||
| 3160 | inherit | ||
| 3161 | (mh-defface-compat (cadr (assoc face mh-face-data))))) | ||
| 3162 | |||
| 3163 | (defface mh-folder-address | ||
| 3164 | (mh-face-data 'mh-folder-subject '((t (:inherit mh-folder-subject)))) | ||
| 3003 | "Recipient face." | 3165 | "Recipient face." |
| 3004 | :group 'mh-faces | 3166 | :group 'mh-faces |
| 3005 | :group 'mh-folder) | 3167 | :group 'mh-folder) |
| 3006 | 3168 | ||
| 3007 | (defface mh-folder-body | 3169 | (defface mh-folder-body |
| 3008 | '((((class color)) | 3170 | (mh-face-data 'mh-folder-msg-number |
| 3009 | (:inherit mh-folder-msg-number)) | 3171 | '((((class color)) |
| 3010 | (t | 3172 | (:inherit mh-folder-msg-number)) |
| 3011 | (:inherit mh-folder-msg-number :italic t))) | 3173 | (t |
| 3174 | (:inherit mh-folder-msg-number :italic t)))) | ||
| 3012 | "Body text face." | 3175 | "Body text face." |
| 3013 | :group 'mh-faces | 3176 | :group 'mh-faces |
| 3014 | :group 'mh-folder) | 3177 | :group 'mh-folder) |
| 3015 | 3178 | ||
| 3016 | (defface mh-folder-cur-msg-number | 3179 | (defface mh-folder-cur-msg-number |
| 3017 | '((t | 3180 | (mh-face-data 'mh-folder-msg-number |
| 3018 | (:inherit mh-folder-msg-number :bold t))) | 3181 | '((t (:inherit mh-folder-msg-number :bold t)))) |
| 3019 | "Current message number face." | 3182 | "Current message number face." |
| 3020 | :group 'mh-faces | 3183 | :group 'mh-faces |
| 3021 | :group 'mh-folder) | 3184 | :group 'mh-folder) |
| 3022 | 3185 | ||
| 3023 | (defface mh-folder-date '((t (:inherit mh-folder-msg-number))) | 3186 | (defface mh-folder-date |
| 3187 | (mh-face-data 'mh-folder-msg-number '((t (:inherit mh-folder-msg-number)))) | ||
| 3024 | "Date face." | 3188 | "Date face." |
| 3025 | :group 'mh-faces | 3189 | :group 'mh-faces |
| 3026 | :group 'mh-folder) | 3190 | :group 'mh-folder) |
| 3027 | 3191 | ||
| 3028 | (defface mh-folder-deleted '((t (:inherit mh-folder-msg-number))) | 3192 | (defface mh-folder-deleted |
| 3193 | (mh-face-data 'mh-folder-msg-number '((t (:inherit mh-folder-msg-number)))) | ||
| 3029 | "Deleted message face." | 3194 | "Deleted message face." |
| 3030 | :group 'mh-faces | 3195 | :group 'mh-faces |
| 3031 | :group 'mh-folder) | 3196 | :group 'mh-folder) |
| 3032 | 3197 | ||
| 3033 | (defface mh-folder-followup | 3198 | (defface mh-folder-followup (mh-face-data 'mh-folder-followup) |
| 3034 | '((((class color) (background light)) | ||
| 3035 | (:foreground "blue3")) | ||
| 3036 | (((class color) (background dark)) | ||
| 3037 | (:foreground "LightGoldenRod")) | ||
| 3038 | (t | ||
| 3039 | (:bold t))) | ||
| 3040 | "\"Re:\" face." | 3199 | "\"Re:\" face." |
| 3041 | :group 'mh-faces | 3200 | :group 'mh-faces |
| 3042 | :group 'mh-folder) | 3201 | :group 'mh-folder) |
| 3043 | 3202 | ||
| 3044 | (defface mh-folder-msg-number | 3203 | (defface mh-folder-msg-number (mh-face-data 'mh-folder-msg-number) |
| 3045 | (mh-defface-compat | ||
| 3046 | '((((class color) (min-colors 64) (background light)) | ||
| 3047 | (:foreground "snow4")) | ||
| 3048 | (((class color) (min-colors 64) (background dark)) | ||
| 3049 | (:foreground "snow3")) | ||
| 3050 | (((class color)) | ||
| 3051 | (:foreground "cyan")))) | ||
| 3052 | |||
| 3053 | "Message number face." | 3204 | "Message number face." |
| 3054 | :group 'mh-faces | 3205 | :group 'mh-faces |
| 3055 | :group 'mh-folder) | 3206 | :group 'mh-folder) |
| 3056 | 3207 | ||
| 3057 | (defface mh-folder-refiled | 3208 | (defface mh-folder-refiled (mh-face-data 'mh-folder-refiled) |
| 3058 | (mh-defface-compat | ||
| 3059 | '((((class color) (min-colors 64) (background light)) | ||
| 3060 | (:foreground "DarkGoldenrod")) | ||
| 3061 | (((class color) (min-colors 64) (background dark)) | ||
| 3062 | (:foreground "LightGoldenrod")) | ||
| 3063 | (((class color)) | ||
| 3064 | (:foreground "yellow" :weight light)) | ||
| 3065 | (((class grayscale) (background light)) | ||
| 3066 | (:foreground "Gray90" :bold t :italic t)) | ||
| 3067 | (((class grayscale) (background dark)) | ||
| 3068 | (:foreground "DimGray" :bold t :italic t)) | ||
| 3069 | (t | ||
| 3070 | (:bold t :italic t)))) | ||
| 3071 | "Refiled message face." | 3209 | "Refiled message face." |
| 3072 | :group 'mh-faces | 3210 | :group 'mh-faces |
| 3073 | :group 'mh-folder) | 3211 | :group 'mh-folder) |
| 3074 | 3212 | ||
| 3075 | (defface mh-folder-sent-to-me-hint '((t (:inherit mh-folder-date))) | 3213 | (defface mh-folder-sent-to-me-hint |
| 3214 | (mh-face-data 'mh-folder-msg-number '((t (:inherit mh-folder-date)))) | ||
| 3076 | "Fontification hint face in messages sent directly to us. | 3215 | "Fontification hint face in messages sent directly to us. |
| 3077 | The detection of messages sent to us is governed by the scan | 3216 | The detection of messages sent to us is governed by the scan |
| 3078 | format `mh-scan-format-nmh' and the regular expression | 3217 | format `mh-scan-format-nmh' and the regular expression |
| @@ -3080,7 +3219,8 @@ format `mh-scan-format-nmh' and the regular expression | |||
| 3080 | :group 'mh-faces | 3219 | :group 'mh-faces |
| 3081 | :group 'mh-folder) | 3220 | :group 'mh-folder) |
| 3082 | 3221 | ||
| 3083 | (defface mh-folder-sent-to-me-sender '((t (:inherit mh-folder-followup))) | 3222 | (defface mh-folder-sent-to-me-sender |
| 3223 | (mh-face-data 'mh-folder-followup '((t (:inherit mh-folder-followup)))) | ||
| 3084 | "Sender face in messages sent directly to us. | 3224 | "Sender face in messages sent directly to us. |
| 3085 | The detection of messages sent to us is governed by the scan | 3225 | The detection of messages sent to us is governed by the scan |
| 3086 | format `mh-scan-format-nmh' and the regular expression | 3226 | format `mh-scan-format-nmh' and the regular expression |
| @@ -3088,212 +3228,122 @@ format `mh-scan-format-nmh' and the regular expression | |||
| 3088 | :group 'mh-faces | 3228 | :group 'mh-faces |
| 3089 | :group 'mh-folder) | 3229 | :group 'mh-folder) |
| 3090 | 3230 | ||
| 3091 | (defface mh-folder-subject | 3231 | (defface mh-folder-subject (mh-face-data 'mh-folder-subject) |
| 3092 | '((((class color) (background light)) | ||
| 3093 | (:foreground "blue4")) | ||
| 3094 | (((class color) (background dark)) | ||
| 3095 | (:foreground "yellow")) | ||
| 3096 | (t | ||
| 3097 | (:bold t))) | ||
| 3098 | "Subject face." | 3232 | "Subject face." |
| 3099 | :group 'mh-faces | 3233 | :group 'mh-faces |
| 3100 | :group 'mh-folder) | 3234 | :group 'mh-folder) |
| 3101 | 3235 | ||
| 3102 | (defface mh-folder-tick | 3236 | (defface mh-folder-tick (mh-face-data 'mh-folder-tick) |
| 3103 | '((((class color) (background dark)) | ||
| 3104 | (:background "#dddf7e")) | ||
| 3105 | (((class color) (background light)) | ||
| 3106 | (:background "#dddf7e")) | ||
| 3107 | (t | ||
| 3108 | (:underline t))) | ||
| 3109 | "Ticked message face." | 3237 | "Ticked message face." |
| 3110 | :group 'mh-faces | 3238 | :group 'mh-faces |
| 3111 | :group 'mh-folder) | 3239 | :group 'mh-folder) |
| 3112 | 3240 | ||
| 3113 | (defface mh-folder-to | 3241 | (defface mh-folder-to (mh-face-data 'mh-folder-to) |
| 3114 | (mh-defface-compat | ||
| 3115 | '((((class color) (min-colors 64) (background light)) | ||
| 3116 | (:foreground "RosyBrown")) | ||
| 3117 | (((class color) (min-colors 64) (background dark)) | ||
| 3118 | (:foreground "LightSalmon")) | ||
| 3119 | (((class color)) | ||
| 3120 | (:foreground "green")) | ||
| 3121 | (((class grayscale) (background light)) | ||
| 3122 | (:foreground "DimGray" :italic t)) | ||
| 3123 | (((class grayscale) (background dark)) | ||
| 3124 | (:foreground "LightGray" :italic t)) | ||
| 3125 | (t | ||
| 3126 | (:italic t)))) | ||
| 3127 | "\"To:\" face." | 3242 | "\"To:\" face." |
| 3128 | :group 'mh-faces | 3243 | :group 'mh-faces |
| 3129 | :group 'mh-folder) | 3244 | :group 'mh-folder) |
| 3130 | 3245 | ||
| 3131 | (defface mh-search-folder | 3246 | (defface mh-letter-header-field (mh-face-data 'mh-letter-header-field) |
| 3132 | '((((class color) (background light)) | ||
| 3133 | (:foreground "dark green" :bold t)) | ||
| 3134 | (((class color) (background dark)) | ||
| 3135 | (:foreground "indian red" :bold t)) | ||
| 3136 | (t | ||
| 3137 | (:bold t))) | ||
| 3138 | "Folder heading face in MH-Folder buffers created by searches." | ||
| 3139 | :group 'mh-faces | ||
| 3140 | :group 'mh-search) | ||
| 3141 | |||
| 3142 | (defface mh-letter-header-field | ||
| 3143 | '((((class color) (background light)) | ||
| 3144 | (:background "gray90")) | ||
| 3145 | (((class color) (background dark)) | ||
| 3146 | (:background "gray10")) | ||
| 3147 | (t | ||
| 3148 | (:bold t))) | ||
| 3149 | "Editable header field value face in draft buffers." | 3247 | "Editable header field value face in draft buffers." |
| 3150 | :group 'mh-faces | 3248 | :group 'mh-faces |
| 3151 | :group 'mh-letter) | 3249 | :group 'mh-letter) |
| 3152 | 3250 | ||
| 3153 | (defface mh-show-cc | 3251 | (defface mh-search-folder (mh-face-data 'mh-search-folder) |
| 3154 | (mh-defface-compat | 3252 | "Folder heading face in MH-Folder buffers created by searches." |
| 3155 | '((((class color) (min-colors 64) (background light)) | 3253 | :group 'mh-faces |
| 3156 | (:foreground "DarkGoldenrod")) | 3254 | :group 'mh-search) |
| 3157 | (((class color) (min-colors 64) (background dark)) | 3255 | |
| 3158 | (:foreground "LightGoldenrod")) | 3256 | (defface mh-show-cc (mh-face-data 'mh-show-cc) |
| 3159 | (((class color)) | ||
| 3160 | (:foreground "yellow" :weight light)) | ||
| 3161 | (((class grayscale) (background light)) | ||
| 3162 | (:foreground "Gray90" :bold t :italic t)) | ||
| 3163 | (((class grayscale) (background dark)) | ||
| 3164 | (:foreground "DimGray" :bold t :italic t)) | ||
| 3165 | (t | ||
| 3166 | (:bold t :italic t)))) | ||
| 3167 | "Face used to highlight \"cc:\" header fields." | 3257 | "Face used to highlight \"cc:\" header fields." |
| 3168 | :group 'mh-faces | 3258 | :group 'mh-faces |
| 3169 | :group 'mh-show) | 3259 | :group 'mh-show) |
| 3170 | 3260 | ||
| 3171 | (defface mh-show-date | 3261 | (defface mh-show-date (mh-face-data 'mh-show-date) |
| 3172 | (mh-defface-compat | ||
| 3173 | '((((class color) (min-colors 64) (background light)) | ||
| 3174 | (:foreground "ForestGreen")) | ||
| 3175 | (((class color) (min-colors 64) (background dark)) | ||
| 3176 | (:foreground "PaleGreen")) | ||
| 3177 | (((class color)) | ||
| 3178 | (:foreground "green")) | ||
| 3179 | (((class grayscale) (background light)) | ||
| 3180 | (:foreground "Gray90" :bold t)) | ||
| 3181 | (((class grayscale) (background dark)) | ||
| 3182 | (:foreground "DimGray" :bold t)) | ||
| 3183 | (t | ||
| 3184 | (:bold t :underline t)))) | ||
| 3185 | "Face used to highlight \"Date:\" header fields." | 3262 | "Face used to highlight \"Date:\" header fields." |
| 3186 | :group 'mh-faces | 3263 | :group 'mh-faces |
| 3187 | :group 'mh-show) | 3264 | :group 'mh-show) |
| 3188 | 3265 | ||
| 3189 | (defface mh-show-from | 3266 | (defface mh-show-from (mh-face-data 'mh-show-from) |
| 3190 | '((((class color) (background light)) | ||
| 3191 | (:foreground "red3")) | ||
| 3192 | (((class color) (background dark)) | ||
| 3193 | (:foreground "cyan")) | ||
| 3194 | (t | ||
| 3195 | (:bold t))) | ||
| 3196 | "Face used to highlight \"From:\" header fields." | 3267 | "Face used to highlight \"From:\" header fields." |
| 3197 | :group 'mh-faces | 3268 | :group 'mh-faces |
| 3198 | :group 'mh-show) | 3269 | :group 'mh-show) |
| 3199 | 3270 | ||
| 3200 | (defface mh-show-header | 3271 | (defface mh-show-header (mh-face-data 'mh-show-header) |
| 3201 | (mh-defface-compat | ||
| 3202 | '((((class color) (min-colors 64) (background light)) | ||
| 3203 | (:foreground "RosyBrown")) | ||
| 3204 | (((class color) (min-colors 64) (background dark)) | ||
| 3205 | (:foreground "LightSalmon")) | ||
| 3206 | (((class color)) | ||
| 3207 | (:foreground "green")) | ||
| 3208 | (((class grayscale) (background light)) | ||
| 3209 | (:foreground "DimGray" :italic t)) | ||
| 3210 | (((class grayscale) (background dark)) | ||
| 3211 | (:foreground "LightGray" :italic t)) | ||
| 3212 | (t | ||
| 3213 | (:italic t)))) | ||
| 3214 | "Face used to deemphasize less interesting header fields." | 3272 | "Face used to deemphasize less interesting header fields." |
| 3215 | :group 'mh-faces | 3273 | :group 'mh-faces |
| 3216 | :group 'mh-show) | 3274 | :group 'mh-show) |
| 3217 | 3275 | ||
| 3218 | (defface mh-show-pgg-bad '((t (:bold t :foreground "DeepPink1"))) | 3276 | (defface mh-show-pgg-bad (mh-face-data 'mh-show-pgg-bad) |
| 3219 | "Bad PGG signature face." | 3277 | "Bad PGG signature face." |
| 3220 | :group 'mh-faces | 3278 | :group 'mh-faces |
| 3221 | :group 'mh-show) | 3279 | :group 'mh-show) |
| 3222 | 3280 | ||
| 3223 | (defface mh-show-pgg-good '((t (:bold t :foreground "LimeGreen"))) | 3281 | (defface mh-show-pgg-good (mh-face-data 'mh-show-pgg-good) |
| 3224 | "Good PGG signature face." | 3282 | "Good PGG signature face." |
| 3225 | :group 'mh-faces | 3283 | :group 'mh-faces |
| 3226 | :group 'mh-show) | 3284 | :group 'mh-show) |
| 3227 | 3285 | ||
| 3228 | (defface mh-show-pgg-unknown '((t (:bold t :foreground "DarkGoldenrod2"))) | 3286 | (defface mh-show-pgg-unknown (mh-face-data 'mh-show-pgg-unknown) |
| 3229 | "Unknown or untrusted PGG signature face." | 3287 | "Unknown or untrusted PGG signature face." |
| 3230 | :group 'mh-faces | 3288 | :group 'mh-faces |
| 3231 | :group 'mh-show) | 3289 | :group 'mh-show) |
| 3232 | 3290 | ||
| 3233 | (defface mh-show-signature '((t (:italic t))) | 3291 | (defface mh-show-signature (mh-face-data 'mh-show-signature) |
| 3234 | "Signature face." | 3292 | "Signature face." |
| 3235 | :group 'mh-faces | 3293 | :group 'mh-faces |
| 3236 | :group 'mh-show) | 3294 | :group 'mh-show) |
| 3237 | 3295 | ||
| 3238 | (defface mh-show-subject '((t (:inherit mh-folder-subject))) | 3296 | (defface mh-show-subject |
| 3297 | (mh-face-data 'mh-folder-subject '((t (:inherit mh-folder-subject)))) | ||
| 3239 | "Face used to highlight \"Subject:\" header fields." | 3298 | "Face used to highlight \"Subject:\" header fields." |
| 3240 | :group 'mh-faces | 3299 | :group 'mh-faces |
| 3241 | :group 'mh-show) | 3300 | :group 'mh-show) |
| 3242 | 3301 | ||
| 3243 | (defface mh-show-to | 3302 | (defface mh-show-to (mh-face-data 'mh-show-to) |
| 3244 | '((((class color) (background light)) | ||
| 3245 | (:foreground "SaddleBrown")) | ||
| 3246 | (((class color) (background dark)) | ||
| 3247 | (:foreground "burlywood")) | ||
| 3248 | (((class grayscale) (background light)) | ||
| 3249 | (:foreground "DimGray" :underline t)) | ||
| 3250 | (((class grayscale) (background dark)) | ||
| 3251 | (:foreground "LightGray" :underline t)) | ||
| 3252 | (t (:underline t))) | ||
| 3253 | "Face used to highlight \"To:\" header fields." | 3303 | "Face used to highlight \"To:\" header fields." |
| 3254 | :group 'mh-faces | 3304 | :group 'mh-faces |
| 3255 | :group 'mh-show) | 3305 | :group 'mh-show) |
| 3256 | 3306 | ||
| 3257 | (defface mh-show-xface '((t (:inherit (mh-show-from highlight)))) | 3307 | (defface mh-show-xface |
| 3258 | "X-Face image face. | 3308 | (mh-face-data 'mh-show-from '((t (:inherit (mh-show-from highlight))))) |
| 3309 | |||
| 3310 | "X-Face image face. | ||
| 3259 | The background and foreground are used in the image." | 3311 | The background and foreground are used in the image." |
| 3260 | :group 'mh-faces | 3312 | :group 'mh-faces |
| 3261 | :group 'mh-show) | 3313 | :group 'mh-show) |
| 3262 | 3314 | ||
| 3263 | (defface mh-speedbar-folder | 3315 | (defface mh-speedbar-folder (mh-face-data 'mh-speedbar-folder) |
| 3264 | '((((class color) (background light)) | ||
| 3265 | (:foreground "blue4")) | ||
| 3266 | (((class color) (background dark)) | ||
| 3267 | (:foreground "light blue"))) | ||
| 3268 | "Basic folder face." | 3316 | "Basic folder face." |
| 3269 | :group 'mh-faces | 3317 | :group 'mh-faces |
| 3270 | :group 'mh-speedbar) | 3318 | :group 'mh-speedbar) |
| 3271 | 3319 | ||
| 3272 | (defface mh-speedbar-folder-with-unseen-messages | 3320 | (defface mh-speedbar-folder-with-unseen-messages |
| 3273 | '((t | 3321 | (mh-face-data 'mh-speedbar-folder |
| 3274 | (:inherit mh-speedbar-folder :bold t))) | 3322 | '((t (:inherit mh-speedbar-folder :bold t)))) |
| 3275 | "Folder face when folder contains unread messages." | 3323 | "Folder face when folder contains unread messages." |
| 3276 | :group 'mh-faces | 3324 | :group 'mh-faces |
| 3277 | :group 'mh-speedbar) | 3325 | :group 'mh-speedbar) |
| 3278 | 3326 | ||
| 3279 | (defface mh-speedbar-selected-folder | 3327 | (defface mh-speedbar-selected-folder |
| 3280 | '((((class color) (background light)) | 3328 | (mh-face-data 'mh-speedbar-selected-folder) |
| 3281 | (:foreground "red1" :underline t)) | ||
| 3282 | (((class color) (background dark)) | ||
| 3283 | (:foreground "red1" :underline t)) | ||
| 3284 | (t | ||
| 3285 | (:underline t))) | ||
| 3286 | "Selected folder face." | 3329 | "Selected folder face." |
| 3287 | :group 'mh-faces | 3330 | :group 'mh-faces |
| 3288 | :group 'mh-speedbar) | 3331 | :group 'mh-speedbar) |
| 3289 | 3332 | ||
| 3290 | (defface mh-speedbar-selected-folder-with-unseen-messages | 3333 | (defface mh-speedbar-selected-folder-with-unseen-messages |
| 3291 | '((t | 3334 | (mh-face-data 'mh-speedbar-selected-folder |
| 3292 | (:inherit mh-speedbar-selected-folder :bold t))) | 3335 | '((t (:inherit mh-speedbar-selected-folder :bold t)))) |
| 3293 | "Selected folder face when folder contains unread messages." | 3336 | "Selected folder face when folder contains unread messages." |
| 3294 | :group 'mh-faces | 3337 | :group 'mh-faces |
| 3295 | :group 'mh-speedbar) | 3338 | :group 'mh-speedbar) |
| 3296 | 3339 | ||
| 3340 | ;; Get rid of temporary functions and data structures. | ||
| 3341 | (fmakunbound 'mh-defface-compat) | ||
| 3342 | (fmakunbound 'mh-face-data) | ||
| 3343 | (makunbound 'mh-face-data) | ||
| 3344 | (makunbound 'mh-inherit-face-flag) | ||
| 3345 | (makunbound 'mh-min-colors-defined-flag) | ||
| 3346 | |||
| 3297 | (provide 'mh-e) | 3347 | (provide 'mh-e) |
| 3298 | 3348 | ||
| 3299 | ;; Local Variables: | 3349 | ;; Local Variables: |