aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-06-17 01:29:30 +0000
committerMiles Bader2005-06-17 01:29:30 +0000
commit44d554912eedabcbda28f9571ba2bb0717074044 (patch)
tree3438a00e691add013138591c844d8d25afbb98c9
parent289824a30c87f23b777b4dc0ce1df84d8323bb1a (diff)
downloademacs-44d554912eedabcbda28f9571ba2bb0717074044.tar.gz
emacs-44d554912eedabcbda28f9571ba2bb0717074044.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-428
Remove "-face" suffix from MH-E faces 2005-06-17 Miles Bader <miles@gnu.org> * lisp/mh-e/mh-customize.el (mh-folder-body, mh-folder-cur-msg) (mh-folder-cur-msg-number, mh-folder-date, mh-folder-followup) (mh-folder-msg-number, mh-folder-refiled, mh-folder-subject) (mh-folder-tick, mh-folder-to, mh-index-folder) (mh-letter-header-field, mh-show-cc, mh-show-date) (mh-show-header, mh-show-pgg-good, mh-show-pgg-unknown) (mh-show-pgg-bad, mh-show-signature, mh-show-to, mh-show-from) (mh-show-xface, mh-speedbar-folder, mh-speedbar-selected-folder) (mh-speedbar-folder-with-unseen-messages) (mh-speedbar-selected-folder-with-unseen-messages) (mh-folder-msg-number, mh-folder-subject, mh-folder-followup) (mh-folder-subject): Remove "-face" suffix from face names. (mh-folder-body, mh-folder-cur-msg, mh-folder-cur-msg-number) (mh-folder-date-face, mh-folder-followup-face) (mh-folder-msg-number-face, mh-folder-refiled-face) (mh-folder-subject-face, mh-folder-tick-face, mh-folder-to-face) (mh-index-folder-face, mh-letter-header-field-face) (mh-show-cc-face, mh-show-date-face, mh-show-header-face) (mh-show-pgg-good-face, mh-show-pgg-unknown-face) (mh-show-pgg-bad-face, mh-show-signature-face, mh-show-to-face) (mh-show-from-face, mh-show-xface-face, mh-speedbar-folder-face) (mh-speedbar-selected-folder-face) (mh-speedbar-folder-with-unseen-messages-face) (mh-speedbar-selected-folder-with-unseen-messages-face): New backward-compatibility aliases for renamed faces. (mh-folder-body-face, mh-folder-cur-msg-face) (mh-folder-cur-msg-number-face, mh-folder-date-face) (mh-folder-followup-face, mh-folder-msg-number-face) (mh-folder-deleted-face, mh-folder-refiled-face) (mh-folder-subject-face, mh-folder-address-face) (mh-folder-scan-format-face, mh-folder-to-face) (mh-index-folder-face, mh-show-cc-face, mh-show-date-face) (mh-show-header-face, mh-show-pgg-good-face) (mh-show-pgg-unknown-face, mh-show-pgg-bad-face) (mh-show-to-face, mh-show-from-face, mh-show-subject-face) (mh-speedbar-folder-with-unseen-messages) (mh-speedbar-selected-folder-with-unseen-messages): Use renamed MH-E faces. * lisp/mh-e/mh-utils.el (mh-letter-font-lock-keywords) (mh-face-display-function): Use renamed MH-E faces. * lisp/mh-e/mh-speed.el (mh-folder-speedbar-buttons) (mh-speed-update-current-folder, mh-speed-normal-face) (mh-speed-bold-face, mh-speed-add-buttons) (mh-speed-invalidate-map): Likewise. * lisp/mh-e/mh-mime.el (mh-signature-highlight): Likewise.
-rw-r--r--lisp/mh-e/ChangeLog49
-rw-r--r--lisp/mh-e/mh-customize.el166
-rw-r--r--lisp/mh-e/mh-mime.el6
-rw-r--r--lisp/mh-e/mh-speed.el32
-rw-r--r--lisp/mh-e/mh-utils.el10
5 files changed, 184 insertions, 79 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index c81ded2ae10..aad03a33077 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,52 @@
12005-06-17 Miles Bader <miles@gnu.org>
2
3 * mh-customize.el (mh-folder-body, mh-folder-cur-msg)
4 (mh-folder-cur-msg-number, mh-folder-date, mh-folder-followup)
5 (mh-folder-msg-number, mh-folder-refiled, mh-folder-subject)
6 (mh-folder-tick, mh-folder-to, mh-index-folder)
7 (mh-letter-header-field, mh-show-cc, mh-show-date)
8 (mh-show-header, mh-show-pgg-good, mh-show-pgg-unknown)
9 (mh-show-pgg-bad, mh-show-signature, mh-show-to, mh-show-from)
10 (mh-show-xface, mh-speedbar-folder, mh-speedbar-selected-folder)
11 (mh-speedbar-folder-with-unseen-messages)
12 (mh-speedbar-selected-folder-with-unseen-messages)
13 (mh-folder-msg-number, mh-folder-subject, mh-folder-followup)
14 (mh-folder-subject): Remove "-face" suffix from face names.
15 (mh-folder-body, mh-folder-cur-msg, mh-folder-cur-msg-number)
16 (mh-folder-date-face, mh-folder-followup-face)
17 (mh-folder-msg-number-face, mh-folder-refiled-face)
18 (mh-folder-subject-face, mh-folder-tick-face, mh-folder-to-face)
19 (mh-index-folder-face, mh-letter-header-field-face)
20 (mh-show-cc-face, mh-show-date-face, mh-show-header-face)
21 (mh-show-pgg-good-face, mh-show-pgg-unknown-face)
22 (mh-show-pgg-bad-face, mh-show-signature-face, mh-show-to-face)
23 (mh-show-from-face, mh-show-xface-face, mh-speedbar-folder-face)
24 (mh-speedbar-selected-folder-face)
25 (mh-speedbar-folder-with-unseen-messages-face)
26 (mh-speedbar-selected-folder-with-unseen-messages-face):
27 New backward-compatibility aliases for renamed faces.
28 (mh-folder-body-face, mh-folder-cur-msg-face)
29 (mh-folder-cur-msg-number-face, mh-folder-date-face)
30 (mh-folder-followup-face, mh-folder-msg-number-face)
31 (mh-folder-deleted-face, mh-folder-refiled-face)
32 (mh-folder-subject-face, mh-folder-address-face)
33 (mh-folder-scan-format-face, mh-folder-to-face)
34 (mh-index-folder-face, mh-show-cc-face, mh-show-date-face)
35 (mh-show-header-face, mh-show-pgg-good-face)
36 (mh-show-pgg-unknown-face, mh-show-pgg-bad-face)
37 (mh-show-to-face, mh-show-from-face, mh-show-subject-face)
38 (mh-speedbar-folder-with-unseen-messages)
39 (mh-speedbar-selected-folder-with-unseen-messages):
40 Use renamed MH-E faces.
41
42 * mh-utils.el (mh-letter-font-lock-keywords)
43 (mh-face-display-function): Use renamed MH-E faces.
44 * mh-speed.el (mh-folder-speedbar-buttons)
45 (mh-speed-update-current-folder, mh-speed-normal-face)
46 (mh-speed-bold-face, mh-speed-add-buttons)
47 (mh-speed-invalidate-map): Likewise.
48 * mh-mime.el (mh-signature-highlight): Likewise.
49
12005-06-16 Juanma Barranquero <lekktu@gmail.com> 502005-06-16 Juanma Barranquero <lekktu@gmail.com>
2 51
3 * mh-comp.el (mh-send-sub): 52 * mh-comp.el (mh-send-sub):
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el
index 54141164391..7aad0798ae0 100644
--- a/lisp/mh-e/mh-customize.el
+++ b/lisp/mh-e/mh-customize.el
@@ -2144,9 +2144,9 @@ will be removed from the unseen sequence."
2144 2144
2145;;; Faces Used in Scan Listing (:group 'mh-folder-faces) 2145;;; Faces Used in Scan Listing (:group 'mh-folder-faces)
2146 2146
2147(defvar mh-folder-body-face 'mh-folder-body-face 2147(defvar mh-folder-body-face 'mh-folder-body
2148 "Face used to highlight body text in MH-Folder buffers.") 2148 "Face used to highlight body text in MH-Folder buffers.")
2149(defface mh-folder-body-face 2149(defface mh-folder-body
2150 '((((type tty) (class color)) (:foreground "green")) 2150 '((((type tty) (class color)) (:foreground "green"))
2151 (((class grayscale) (background light)) (:foreground "DimGray" :italic t)) 2151 (((class grayscale) (background light)) (:foreground "DimGray" :italic t))
2152 (((class grayscale) (background dark)) (:foreground "LightGray" :italic t)) 2152 (((class grayscale) (background dark)) (:foreground "LightGray" :italic t))
@@ -2155,10 +2155,14 @@ will be removed from the unseen sequence."
2155 (t (:italic t))) 2155 (t (:italic t)))
2156 "Face used to highlight body text in MH-Folder buffers." 2156 "Face used to highlight body text in MH-Folder buffers."
2157 :group 'mh-folder-faces) 2157 :group 'mh-folder-faces)
2158;; backward-compatibility alias
2159(put 'mh-folder-body 'face-alias 'mh-folder-body)
2160;; backward-compatibility alias
2161(put ''mh-folder-body-face 'face-alias ''mh-folder-body)
2158 2162
2159(defvar mh-folder-cur-msg-face 'mh-folder-cur-msg-face 2163(defvar mh-folder-cur-msg-face 'mh-folder-cur-msg
2160 "Face used for the current message line in MH-Folder buffers.") 2164 "Face used for the current message line in MH-Folder buffers.")
2161(defface mh-folder-cur-msg-face 2165(defface mh-folder-cur-msg
2162 '((((type tty pc) (class color)) 2166 '((((type tty pc) (class color))
2163 (:background "LightGreen")) 2167 (:background "LightGreen"))
2164 (((class color) (background light)) 2168 (((class color) (background light))
@@ -2170,10 +2174,14 @@ will be removed from the unseen sequence."
2170 (t (:underline t))) 2174 (t (:underline t)))
2171 "Face used for the current message line in MH-Folder buffers." 2175 "Face used for the current message line in MH-Folder buffers."
2172 :group 'mh-folder-faces) 2176 :group 'mh-folder-faces)
2177;; backward-compatibility alias
2178(put 'mh-folder-cur-msg 'face-alias 'mh-folder-cur-msg)
2179;; backward-compatibility alias
2180(put ''mh-folder-cur-msg-face 'face-alias ''mh-folder-cur-msg)
2173 2181
2174(defvar mh-folder-cur-msg-number-face 'mh-folder-cur-msg-number-face 2182(defvar mh-folder-cur-msg-number-face 'mh-folder-cur-msg-number
2175 "Face used to highlight the current message in MH-Folder buffers.") 2183 "Face used to highlight the current message in MH-Folder buffers.")
2176(defface mh-folder-cur-msg-number-face 2184(defface mh-folder-cur-msg-number
2177 '((((type tty) (class color)) (:foreground "cyan" :weight bold)) 2185 '((((type tty) (class color)) (:foreground "cyan" :weight bold))
2178 (((class grayscale) (background light)) (:foreground "LightGray" :bold t)) 2186 (((class grayscale) (background light)) (:foreground "LightGray" :bold t))
2179 (((class grayscale) (background dark)) (:foreground "DimGray" :bold t)) 2187 (((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
@@ -2182,10 +2190,14 @@ will be removed from the unseen sequence."
2182 (t (:bold t))) 2190 (t (:bold t)))
2183 "Face used to highlight the current message in MH-Folder buffers." 2191 "Face used to highlight the current message in MH-Folder buffers."
2184 :group 'mh-folder-faces) 2192 :group 'mh-folder-faces)
2193;; backward-compatibility alias
2194(put 'mh-folder-cur-msg-number 'face-alias 'mh-folder-cur-msg-number)
2195;; backward-compatibility alias
2196(put ''mh-folder-cur-msg-number-face 'face-alias ''mh-folder-cur-msg-number)
2185 2197
2186(defvar mh-folder-date-face 'mh-folder-date-face 2198(defvar mh-folder-date-face 'mh-folder-date
2187 "Face used to highlight the date in MH-Folder buffers.") 2199 "Face used to highlight the date in MH-Folder buffers.")
2188(defface mh-folder-date-face 2200(defface mh-folder-date
2189 '((((class color) (background light)) 2201 '((((class color) (background light))
2190 (:foreground "snow4")) 2202 (:foreground "snow4"))
2191 (((class color) (background dark)) 2203 (((class color) (background dark))
@@ -2194,10 +2206,12 @@ will be removed from the unseen sequence."
2194 (:bold t))) 2206 (:bold t)))
2195 "Face used to highlight the date in MH-Folder buffers." 2207 "Face used to highlight the date in MH-Folder buffers."
2196 :group 'mh-folder-faces) 2208 :group 'mh-folder-faces)
2209;; backward-compatibility alias
2210(put 'mh-folder-date-face 'face-alias 'mh-folder-date)
2197 2211
2198(defvar mh-folder-followup-face 'mh-folder-followup-face 2212(defvar mh-folder-followup-face 'mh-folder-followup
2199 "Face used to highlight Re: subject text in MH-Folder buffers.") 2213 "Face used to highlight Re: subject text in MH-Folder buffers.")
2200(defface mh-folder-followup-face 2214(defface mh-folder-followup
2201 '((((class color) (background light)) 2215 '((((class color) (background light))
2202 (:foreground "blue3")) 2216 (:foreground "blue3"))
2203 (((class color) (background dark)) 2217 (((class color) (background dark))
@@ -2206,10 +2220,12 @@ will be removed from the unseen sequence."
2206 (:bold t))) 2220 (:bold t)))
2207 "Face used to highlight Re: subject text in MH-Folder buffers." 2221 "Face used to highlight Re: subject text in MH-Folder buffers."
2208 :group 'mh-folder-faces) 2222 :group 'mh-folder-faces)
2223;; backward-compatibility alias
2224(put 'mh-folder-followup-face 'face-alias 'mh-folder-followup)
2209 2225
2210(defvar mh-folder-msg-number-face 'mh-folder-msg-number-face 2226(defvar mh-folder-msg-number-face 'mh-folder-msg-number
2211 "Face used to highlight the message number in MH-Folder buffers.") 2227 "Face used to highlight the message number in MH-Folder buffers.")
2212(defface mh-folder-msg-number-face 2228(defface mh-folder-msg-number
2213 '((((class color) (background light)) 2229 '((((class color) (background light))
2214 (:foreground "snow4")) 2230 (:foreground "snow4"))
2215 (((class color) (background dark)) 2231 (((class color) (background dark))
@@ -2218,14 +2234,16 @@ will be removed from the unseen sequence."
2218 (:bold t))) 2234 (:bold t)))
2219 "Face used to highlight the message number in MH-Folder buffers." 2235 "Face used to highlight the message number in MH-Folder buffers."
2220 :group 'mh-folder-faces) 2236 :group 'mh-folder-faces)
2237;; backward-compatibility alias
2238(put 'mh-folder-msg-number-face 'face-alias 'mh-folder-msg-number)
2221 2239
2222(defvar mh-folder-deleted-face 'mh-folder-deleted-face 2240(defvar mh-folder-deleted-face 'mh-folder-deleted
2223 "Face used to highlight deleted messages in MH-Folder buffers.") 2241 "Face used to highlight deleted messages in MH-Folder buffers.")
2224(copy-face 'mh-folder-msg-number-face 'mh-folder-deleted-face) 2242(copy-face 'mh-folder-msg-number 'mh-folder-deleted)
2225 2243
2226(defvar mh-folder-refiled-face 'mh-folder-refiled-face 2244(defvar mh-folder-refiled-face 'mh-folder-refiled
2227 "Face used to highlight refiled messages in MH-Folder buffers.") 2245 "Face used to highlight refiled messages in MH-Folder buffers.")
2228(defface mh-folder-refiled-face 2246(defface mh-folder-refiled
2229 '((((type tty) (class color)) (:foreground "yellow" :weight light)) 2247 '((((type tty) (class color)) (:foreground "yellow" :weight light))
2230 (((class grayscale) (background light)) 2248 (((class grayscale) (background light))
2231 (:foreground "Gray90" :bold t :italic t)) 2249 (:foreground "Gray90" :bold t :italic t))
@@ -2236,12 +2254,14 @@ will be removed from the unseen sequence."
2236 (t (:bold t :italic t))) 2254 (t (:bold t :italic t)))
2237 "Face used to highlight refiled messages in MH-Folder buffers." 2255 "Face used to highlight refiled messages in MH-Folder buffers."
2238 :group 'mh-folder-faces) 2256 :group 'mh-folder-faces)
2257;; backward-compatibility alias
2258(put 'mh-folder-refiled-face 'face-alias 'mh-folder-refiled)
2239 2259
2240(defvar mh-folder-subject-face 'mh-folder-subject-face 2260(defvar mh-folder-subject-face 'mh-folder-subject
2241 "Face used to highlight subject text in MH-Folder buffers.") 2261 "Face used to highlight subject text in MH-Folder buffers.")
2242(if (boundp 'facemenu-unlisted-faces) 2262(if (boundp 'facemenu-unlisted-faces)
2243 (add-to-list 'facemenu-unlisted-faces "^mh-folder")) 2263 (add-to-list 'facemenu-unlisted-faces "^mh-folder"))
2244(defface mh-folder-subject-face 2264(defface mh-folder-subject
2245 '((((class color) (background light)) 2265 '((((class color) (background light))
2246 (:foreground "blue4")) 2266 (:foreground "blue4"))
2247 (((class color) (background dark)) 2267 (((class color) (background dark))
@@ -2250,25 +2270,29 @@ will be removed from the unseen sequence."
2250 (:bold t))) 2270 (:bold t)))
2251 "Face used to highlight subject text in MH-Folder buffers." 2271 "Face used to highlight subject text in MH-Folder buffers."
2252 :group 'mh-folder-faces) 2272 :group 'mh-folder-faces)
2273;; backward-compatibility alias
2274(put 'mh-folder-subject-face 'face-alias 'mh-folder-subject)
2253 2275
2254(defface mh-folder-tick-face 2276(defface mh-folder-tick
2255 '((((class color) (background dark)) (:background "#dddf7e")) 2277 '((((class color) (background dark)) (:background "#dddf7e"))
2256 (((class color) (background light)) (:background "#dddf7e")) 2278 (((class color) (background light)) (:background "#dddf7e"))
2257 (t (:underline t))) 2279 (t (:underline t)))
2258 "Face used to show ticked messages." 2280 "Face used to show ticked messages."
2259 :group 'mh-folder-faces) 2281 :group 'mh-folder-faces)
2282;; backward-compatibility alias
2283(put 'mh-folder-tick-face 'face-alias 'mh-folder-tick)
2260 2284
2261(defvar mh-folder-address-face 'mh-folder-address-face 2285(defvar mh-folder-address-face 'mh-folder-address
2262 "Face used to highlight the address in MH-Folder buffers.") 2286 "Face used to highlight the address in MH-Folder buffers.")
2263(copy-face 'mh-folder-subject-face 'mh-folder-address-face) 2287(copy-face 'mh-folder-subject 'mh-folder-address)
2264 2288
2265(defvar mh-folder-scan-format-face 'mh-folder-scan-format-face 2289(defvar mh-folder-scan-format-face 'mh-folder-scan-format
2266 "Face used to highlight `mh-scan-format-regexp' matches in MH-Folder buffers.") 2290 "Face used to highlight `mh-scan-format-regexp' matches in MH-Folder buffers.")
2267(copy-face 'mh-folder-followup-face 'mh-folder-scan-format-face) 2291(copy-face 'mh-folder-followup 'mh-folder-scan-format)
2268 2292
2269(defvar mh-folder-to-face 'mh-folder-to-face 2293(defvar mh-folder-to-face 'mh-folder-to
2270 "Face used to highlight the To: string in MH-Folder buffers.") 2294 "Face used to highlight the To: string in MH-Folder buffers.")
2271(defface mh-folder-to-face 2295(defface mh-folder-to
2272 '((((type tty) (class color)) (:foreground "green")) 2296 '((((type tty) (class color)) (:foreground "green"))
2273 (((class grayscale) (background light)) (:foreground "DimGray" :italic t)) 2297 (((class grayscale) (background light)) (:foreground "DimGray" :italic t))
2274 (((class grayscale) (background dark)) (:foreground "LightGray" :italic t)) 2298 (((class grayscale) (background dark)) (:foreground "LightGray" :italic t))
@@ -2277,14 +2301,16 @@ will be removed from the unseen sequence."
2277 (t (:italic t))) 2301 (t (:italic t)))
2278 "Face used to highlight the To: string in MH-Folder buffers." 2302 "Face used to highlight the To: string in MH-Folder buffers."
2279 :group 'mh-folder-faces) 2303 :group 'mh-folder-faces)
2304;; backward-compatibility alias
2305(put 'mh-folder-to-face 'face-alias 'mh-folder-to)
2280 2306
2281 2307
2282 2308
2283;;; Faces Used in Searching (:group 'mh-index-faces) 2309;;; Faces Used in Searching (:group 'mh-index-faces)
2284 2310
2285(defvar mh-index-folder-face 'mh-index-folder-face 2311(defvar mh-index-folder-face 'mh-index-folder
2286 "Face used to highlight folders in MH-Index buffers.") 2312 "Face used to highlight folders in MH-Index buffers.")
2287(defface mh-index-folder-face 2313(defface mh-index-folder
2288 '((((class color) (background light)) 2314 '((((class color) (background light))
2289 (:foreground "dark green" :bold t)) 2315 (:foreground "dark green" :bold t))
2290 (((class color) (background dark)) 2316 (((class color) (background dark))
@@ -2293,12 +2319,14 @@ will be removed from the unseen sequence."
2293 (:bold t))) 2319 (:bold t)))
2294 "Face used to highlight folders in MH-Index buffers." 2320 "Face used to highlight folders in MH-Index buffers."
2295 :group 'mh-index-faces) 2321 :group 'mh-index-faces)
2322;; backward-compatibility alias
2323(put 'mh-index-folder-face 'face-alias 'mh-index-folder)
2296 2324
2297 2325
2298 2326
2299;;; Faces Used in Message Drafts (:group 'mh-letter-faces) 2327;;; Faces Used in Message Drafts (:group 'mh-letter-faces)
2300 2328
2301(defface mh-letter-header-field-face 2329(defface mh-letter-header-field
2302 '((((class color) (background light)) 2330 '((((class color) (background light))
2303 (:background "gray90")) 2331 (:background "gray90"))
2304 (((class color) (background dark)) 2332 (((class color) (background dark))
@@ -2306,14 +2334,16 @@ will be removed from the unseen sequence."
2306 (t (:bold t))) 2334 (t (:bold t)))
2307 "Face used to display header fields in draft buffers." 2335 "Face used to display header fields in draft buffers."
2308 :group 'mh-letter-faces) 2336 :group 'mh-letter-faces)
2337;; backward-compatibility alias
2338(put 'mh-letter-header-field-face 'face-alias 'mh-letter-header-field)
2309 2339
2310 2340
2311 2341
2312;;; Faces Used in Message Display (:group 'mh-show-faces) 2342;;; Faces Used in Message Display (:group 'mh-show-faces)
2313 2343
2314(defvar mh-show-cc-face 'mh-show-cc-face 2344(defvar mh-show-cc-face 'mh-show-cc
2315 "Face used to highlight cc: header fields.") 2345 "Face used to highlight cc: header fields.")
2316(defface mh-show-cc-face 2346(defface mh-show-cc
2317 '((((type tty) (class color)) (:foreground "yellow" :weight light)) 2347 '((((type tty) (class color)) (:foreground "yellow" :weight light))
2318 (((class grayscale) (background light)) 2348 (((class grayscale) (background light))
2319 (:foreground "Gray90" :bold t :italic t)) 2349 (:foreground "Gray90" :bold t :italic t))
@@ -2324,10 +2354,12 @@ will be removed from the unseen sequence."
2324 (t (:bold t :italic t))) 2354 (t (:bold t :italic t)))
2325 "Face used to highlight cc: header fields." 2355 "Face used to highlight cc: header fields."
2326 :group 'mh-show-faces) 2356 :group 'mh-show-faces)
2357;; backward-compatibility alias
2358(put 'mh-show-cc-face 'face-alias 'mh-show-cc)
2327 2359
2328(defvar mh-show-date-face 'mh-show-date-face 2360(defvar mh-show-date-face 'mh-show-date
2329 "Face used to highlight the Date: header field.") 2361 "Face used to highlight the Date: header field.")
2330(defface mh-show-date-face 2362(defface mh-show-date
2331 '((((type tty) (class color)) (:foreground "green")) 2363 '((((type tty) (class color)) (:foreground "green"))
2332 (((class grayscale) (background light)) (:foreground "Gray90" :bold t)) 2364 (((class grayscale) (background light)) (:foreground "Gray90" :bold t))
2333 (((class grayscale) (background dark)) (:foreground "DimGray" :bold t)) 2365 (((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
@@ -2336,10 +2368,12 @@ will be removed from the unseen sequence."
2336 (t (:bold t :underline t))) 2368 (t (:bold t :underline t)))
2337 "Face used to highlight the Date: header field." 2369 "Face used to highlight the Date: header field."
2338 :group 'mh-show-faces) 2370 :group 'mh-show-faces)
2371;; backward-compatibility alias
2372(put 'mh-show-date-face 'face-alias 'mh-show-date)
2339 2373
2340(defvar mh-show-header-face 'mh-show-header-face 2374(defvar mh-show-header-face 'mh-show-header
2341 "Face used to deemphasize unspecified header fields.") 2375 "Face used to deemphasize unspecified header fields.")
2342(defface mh-show-header-face 2376(defface mh-show-header
2343 '((((type tty) (class color)) (:foreground "green")) 2377 '((((type tty) (class color)) (:foreground "green"))
2344 (((class grayscale) (background light)) (:foreground "DimGray" :italic t)) 2378 (((class grayscale) (background light)) (:foreground "DimGray" :italic t))
2345 (((class grayscale) (background dark)) (:foreground "LightGray" :italic t)) 2379 (((class grayscale) (background dark)) (:foreground "LightGray" :italic t))
@@ -2348,40 +2382,50 @@ will be removed from the unseen sequence."
2348 (t (:italic t))) 2382 (t (:italic t)))
2349 "Face used to deemphasize unspecified header fields." 2383 "Face used to deemphasize unspecified header fields."
2350 :group 'mh-show-faces) 2384 :group 'mh-show-faces)
2385;; backward-compatibility alias
2386(put 'mh-show-header-face 'face-alias 'mh-show-header)
2351 2387
2352(defvar mh-show-pgg-good-face 'mh-show-pgg-good-face 2388(defvar mh-show-pgg-good-face 'mh-show-pgg-good
2353 "Face used to highlight a good PGG signature.") 2389 "Face used to highlight a good PGG signature.")
2354(defface mh-show-pgg-good-face 2390(defface mh-show-pgg-good
2355 '((t (:bold t :foreground "LimeGreen"))) 2391 '((t (:bold t :foreground "LimeGreen")))
2356 "Face used to highlight a good PGG signature." 2392 "Face used to highlight a good PGG signature."
2357 :group 'mh-show-faces) 2393 :group 'mh-show-faces)
2394;; backward-compatibility alias
2395(put 'mh-show-pgg-good-face 'face-alias 'mh-show-pgg-good)
2358 2396
2359(defvar mh-show-pgg-unknown-face 'mh-show-pgg-unknown-face 2397(defvar mh-show-pgg-unknown-face 'mh-show-pgg-unknown
2360 "Face used to highlight a PGG signature whose status is unknown. 2398 "Face used to highlight a PGG signature whose status is unknown.
2361This face is also used for a signature when the signer is untrusted.") 2399This face is also used for a signature when the signer is untrusted.")
2362(defface mh-show-pgg-unknown-face 2400(defface mh-show-pgg-unknown
2363 '((t (:bold t :foreground "DarkGoldenrod2"))) 2401 '((t (:bold t :foreground "DarkGoldenrod2")))
2364 "Face used to highlight a PGG signature whose status is unknown. 2402 "Face used to highlight a PGG signature whose status is unknown.
2365This face is also used for a signature when the signer is untrusted." 2403This face is also used for a signature when the signer is untrusted."
2366 :group 'mh-show-faces) 2404 :group 'mh-show-faces)
2405;; backward-compatibility alias
2406(put 'mh-show-pgg-unknown-face 'face-alias 'mh-show-pgg-unknown)
2367 2407
2368(defvar mh-show-pgg-bad-face 'mh-show-pgg-bad-face 2408(defvar mh-show-pgg-bad-face 'mh-show-pgg-bad
2369 "Face used to highlight a bad PGG signature.") 2409 "Face used to highlight a bad PGG signature.")
2370(defface mh-show-pgg-bad-face 2410(defface mh-show-pgg-bad
2371 '((t (:bold t :foreground "DeepPink1"))) 2411 '((t (:bold t :foreground "DeepPink1")))
2372 "Face used to highlight a bad PGG signature." 2412 "Face used to highlight a bad PGG signature."
2373 :group 'mh-show-faces) 2413 :group 'mh-show-faces)
2414;; backward-compatibility alias
2415(put 'mh-show-pgg-bad-face 'face-alias 'mh-show-pgg-bad)
2374 2416
2375(defface mh-show-signature-face 2417(defface mh-show-signature
2376 '((t (:italic t))) 2418 '((t (:italic t)))
2377 "Face used to highlight the message signature." 2419 "Face used to highlight the message signature."
2378 :group 'mh-show-faces) 2420 :group 'mh-show-faces)
2421;; backward-compatibility alias
2422(put 'mh-show-signature-face 'face-alias 'mh-show-signature)
2379 2423
2380(defvar mh-show-to-face 'mh-show-to-face 2424(defvar mh-show-to-face 'mh-show-to
2381 "Face used to highlight the To: header field.") 2425 "Face used to highlight the To: header field.")
2382(if (boundp 'facemenu-unlisted-faces) 2426(if (boundp 'facemenu-unlisted-faces)
2383 (add-to-list 'facemenu-unlisted-faces "^mh-show")) 2427 (add-to-list 'facemenu-unlisted-faces "^mh-show"))
2384(defface mh-show-to-face 2428(defface mh-show-to
2385 '((((class grayscale) (background light)) 2429 '((((class grayscale) (background light))
2386 (:foreground "DimGray" :underline t)) 2430 (:foreground "DimGray" :underline t))
2387 (((class grayscale) (background dark)) 2431 (((class grayscale) (background dark))
@@ -2391,10 +2435,12 @@ This face is also used for a signature when the signer is untrusted."
2391 (t (:underline t))) 2435 (t (:underline t)))
2392 "Face used to highlight the To: header field." 2436 "Face used to highlight the To: header field."
2393 :group 'mh-show-faces) 2437 :group 'mh-show-faces)
2438;; backward-compatibility alias
2439(put 'mh-show-to-face 'face-alias 'mh-show-to)
2394 2440
2395(defvar mh-show-from-face 'mh-show-from-face 2441(defvar mh-show-from-face 'mh-show-from
2396 "Face used to highlight the From: header field.") 2442 "Face used to highlight the From: header field.")
2397(defface mh-show-from-face 2443(defface mh-show-from
2398 '((((class color) (background light)) 2444 '((((class color) (background light))
2399 (:foreground "red3")) 2445 (:foreground "red3"))
2400 (((class color) (background dark)) 2446 (((class color) (background dark))
@@ -2403,30 +2449,36 @@ This face is also used for a signature when the signer is untrusted."
2403 (:bold t))) 2449 (:bold t)))
2404 "Face used to highlight the From: header field." 2450 "Face used to highlight the From: header field."
2405 :group 'mh-show-faces) 2451 :group 'mh-show-faces)
2452;; backward-compatibility alias
2453(put 'mh-show-from-face 'face-alias 'mh-show-from)
2406 2454
2407(defface mh-show-xface-face 2455(defface mh-show-xface
2408 '((t (:foreground "black" :background "white"))) 2456 '((t (:foreground "black" :background "white")))
2409 "Face used to display the X-Face image. 2457 "Face used to display the X-Face image.
2410The background and foreground is used in the image." 2458The background and foreground is used in the image."
2411 :group 'mh-show-faces) 2459 :group 'mh-show-faces)
2460;; backward-compatibility alias
2461(put 'mh-show-xface-face 'face-alias 'mh-show-xface)
2412 2462
2413(defvar mh-show-subject-face 'mh-show-subject-face 2463(defvar mh-show-subject-face 'mh-show-subject
2414 "Face used to highlight the Subject: header field.") 2464 "Face used to highlight the Subject: header field.")
2415(copy-face 'mh-folder-subject-face 'mh-show-subject-face) 2465(copy-face 'mh-folder-subject 'mh-show-subject)
2416 2466
2417 2467
2418 2468
2419;;; Faces Used in Speedbar (:group 'mh-speed-faces) 2469;;; Faces Used in Speedbar (:group 'mh-speed-faces)
2420 2470
2421(defface mh-speedbar-folder-face 2471(defface mh-speedbar-folder
2422 '((((class color) (background light)) 2472 '((((class color) (background light))
2423 (:foreground "blue4")) 2473 (:foreground "blue4"))
2424 (((class color) (background dark)) 2474 (((class color) (background dark))
2425 (:foreground "light blue"))) 2475 (:foreground "light blue")))
2426 "Face used for folders in the speedbar buffer." 2476 "Face used for folders in the speedbar buffer."
2427 :group 'mh-speed-faces) 2477 :group 'mh-speed-faces)
2478;; backward-compatibility alias
2479(put 'mh-speedbar-folder-face 'face-alias 'mh-speedbar-folder)
2428 2480
2429(defface mh-speedbar-selected-folder-face 2481(defface mh-speedbar-selected-folder
2430 '((((class color) (background light)) 2482 '((((class color) (background light))
2431 (:foreground "red1" :underline t)) 2483 (:foreground "red1" :underline t))
2432 (((class color) (background dark)) 2484 (((class color) (background dark))
@@ -2434,16 +2486,22 @@ The background and foreground is used in the image."
2434 (t (:underline t))) 2486 (t (:underline t)))
2435 "Face used for the current folder." 2487 "Face used for the current folder."
2436 :group 'mh-speed-faces) 2488 :group 'mh-speed-faces)
2489;; backward-compatibility alias
2490(put 'mh-speedbar-selected-folder-face 'face-alias 'mh-speedbar-selected-folder)
2437 2491
2438(defface mh-speedbar-folder-with-unseen-messages-face 2492(defface mh-speedbar-folder-with-unseen-messages
2439 '((t (:inherit mh-speedbar-folder-face :bold t))) 2493 '((t (:inherit mh-speedbar-folder :bold t)))
2440 "Face used for folders in the speedbar buffer which have unread messages." 2494 "Face used for folders in the speedbar buffer which have unread messages."
2441 :group 'mh-speed-faces) 2495 :group 'mh-speed-faces)
2496;; backward-compatibility alias
2497(put 'mh-speedbar-folder-with-unseen-messages-face 'face-alias 'mh-speedbar-folder-with-unseen-messages)
2442 2498
2443(defface mh-speedbar-selected-folder-with-unseen-messages-face 2499(defface mh-speedbar-selected-folder-with-unseen-messages
2444 '((t (:inherit mh-speedbar-selected-folder-face :bold t))) 2500 '((t (:inherit mh-speedbar-selected-folder :bold t)))
2445 "Face used for the current folder when it has unread messages." 2501 "Face used for the current folder when it has unread messages."
2446 :group 'mh-speed-faces) 2502 :group 'mh-speed-faces)
2503;; backward-compatibility alias
2504(put 'mh-speedbar-selected-folder-with-unseen-messages-face 'face-alias 'mh-speedbar-selected-folder-with-unseen-messages)
2447 2505
2448;;; Local Variables: 2506;;; Local Variables:
2449;;; indent-tabs-mode: nil 2507;;; indent-tabs-mode: nil
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el
index e5eee011e4f..e130d57a88c 100644
--- a/lisp/mh-e/mh-mime.el
+++ b/lisp/mh-e/mh-mime.el
@@ -1,7 +1,7 @@
1;;; mh-mime.el --- MH-E support for composing MIME messages 1;;; mh-mime.el --- MH-E support for composing MIME messages
2 2
3;; Copyright (C) 1993, 1995, 3;; Copyright (C) 1993, 1995,
4;; 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 4;; 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6;; Author: Bill Wohler <wohler@newt.com> 6;; Author: Bill Wohler <wohler@newt.com>
7;; Maintainer: Bill Wohler <wohler@newt.com> 7;; Maintainer: Bill Wohler <wohler@newt.com>
@@ -1059,11 +1059,11 @@ to highlight the signature in a MIME part."
1059 (when (re-search-backward regexp nil t) 1059 (when (re-search-backward regexp nil t)
1060 (mh-do-in-gnu-emacs 1060 (mh-do-in-gnu-emacs
1061 (let ((ov (make-overlay (point) (point-max)))) 1061 (let ((ov (make-overlay (point) (point-max))))
1062 (overlay-put ov 'face 'mh-show-signature-face) 1062 (overlay-put ov 'face 'mh-show-signature)
1063 (overlay-put ov 'evaporate t))) 1063 (overlay-put ov 'evaporate t)))
1064 (mh-do-in-xemacs 1064 (mh-do-in-xemacs
1065 (set-extent-property (make-extent (point) (point-max)) 1065 (set-extent-property (make-extent (point) (point-max))
1066 'face 'mh-show-signature-face)))))) 1066 'face 'mh-show-signature))))))
1067 1067
1068(mh-do-in-xemacs 1068(mh-do-in-xemacs
1069 (defvar dots) 1069 (defvar dots)
diff --git a/lisp/mh-e/mh-speed.el b/lisp/mh-e/mh-speed.el
index 2617a941de1..87349277cc0 100644
--- a/lisp/mh-e/mh-speed.el
+++ b/lisp/mh-e/mh-speed.el
@@ -1,6 +1,6 @@
1;;; mh-speed.el --- Speedbar interface for MH-E. 1;;; mh-speed.el --- Speedbar interface for MH-E.
2 2
3;; Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. 3;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 4
5;; Author: Satyaki Das <satyaki@theforce.stanford.edu> 5;; Author: Satyaki Das <satyaki@theforce.stanford.edu>
6;; Maintainer: Bill Wohler <wohler@newt.com> 6;; Maintainer: Bill Wohler <wohler@newt.com>
@@ -67,7 +67,7 @@ BUFFER is the MH-E buffer for which the speedbar buffer is to be created."
67 (erase-buffer) 67 (erase-buffer)
68 (clrhash mh-speed-folder-map) 68 (clrhash mh-speed-folder-map)
69 (speedbar-make-tag-line 'bracket ?+ 'mh-speed-toggle nil " " 'ignore nil 69 (speedbar-make-tag-line 'bracket ?+ 'mh-speed-toggle nil " " 'ignore nil
70 'mh-speedbar-folder-face 0) 70 'mh-speedbar-folder 0)
71 (forward-line -1) 71 (forward-line -1)
72 (setf (gethash nil mh-speed-folder-map) 72 (setf (gethash nil mh-speed-folder-map)
73 (set-marker (or (gethash nil mh-speed-folder-map) (make-marker)) 73 (set-marker (or (gethash nil mh-speed-folder-map) (make-marker))
@@ -149,12 +149,11 @@ The update is always carried out if FORCE is non-nil."
149 (set-buffer speedbar-buffer) 149 (set-buffer speedbar-buffer)
150 150
151 ;; Remove highlight from previous match... 151 ;; Remove highlight from previous match...
152 (mh-speed-highlight mh-speed-last-selected-folder 152 (mh-speed-highlight mh-speed-last-selected-folder 'mh-speedbar-folder)
153 'mh-speedbar-folder-face)
154 153
155 ;; If we found a match highlight it... 154 ;; If we found a match highlight it...
156 (when (mh-speed-goto-folder newcf) 155 (when (mh-speed-goto-folder newcf)
157 (mh-speed-highlight newcf 'mh-speedbar-selected-folder-face)) 156 (mh-speed-highlight newcf 'mh-speedbar-selected-folder))
158 157
159 (setq mh-speed-last-selected-folder newcf) 158 (setq mh-speed-last-selected-folder newcf)
160 (speedbar-position-cursor-on-line) 159 (speedbar-position-cursor-on-line)
@@ -166,18 +165,18 @@ The update is always carried out if FORCE is non-nil."
166 165
167(defun mh-speed-normal-face (face) 166(defun mh-speed-normal-face (face)
168 "Return normal face for given FACE." 167 "Return normal face for given FACE."
169 (cond ((eq face 'mh-speedbar-folder-with-unseen-messages-face) 168 (cond ((eq face 'mh-speedbar-folder-with-unseen-messages)
170 'mh-speedbar-folder-face) 169 'mh-speedbar-folder)
171 ((eq face 'mh-speedbar-selected-folder-with-unseen-messages-face) 170 ((eq face 'mh-speedbar-selected-folder-with-unseen-messages)
172 'mh-speedbar-selected-folder-face) 171 'mh-speedbar-selected-folder)
173 (t face))) 172 (t face)))
174 173
175(defun mh-speed-bold-face (face) 174(defun mh-speed-bold-face (face)
176 "Return bold face for given FACE." 175 "Return bold face for given FACE."
177 (cond ((eq face 'mh-speedbar-folder-face) 176 (cond ((eq face 'mh-speedbar-folder)
178 'mh-speedbar-folder-with-unseen-messages-face) 177 'mh-speedbar-folder-with-unseen-messages)
179 ((eq face 'mh-speedbar-selected-folder-face) 178 ((eq face 'mh-speedbar-selected-folder)
180 'mh-speedbar-selected-folder-with-unseen-messages-face) 179 'mh-speedbar-selected-folder-with-unseen-messages)
181 (t face))) 180 (t face)))
182 181
183(defun mh-speed-highlight (folder face) 182(defun mh-speed-highlight (folder face)
@@ -272,8 +271,8 @@ Do the right thing for the different kinds of buffers that MH-E uses."
272 "")) 271 ""))
273 'mh-speed-view nil 272 'mh-speed-view nil
274 (if (and counts (> (car counts) 0)) 273 (if (and counts (> (car counts) 0))
275 'mh-speedbar-folder-with-unseen-messages-face 274 'mh-speedbar-folder-with-unseen-messages
276 'mh-speedbar-folder-face) 275 'mh-speedbar-folder)
277 level) 276 level)
278 (save-excursion 277 (save-excursion
279 (forward-line -1) 278 (forward-line -1)
@@ -496,8 +495,7 @@ next."
496 (add-text-properties 495 (add-text-properties
497 (line-beginning-position) (1+ (line-beginning-position)) 496 (line-beginning-position) (1+ (line-beginning-position))
498 `(mh-children-p ,(equal parent-change ?+))))) 497 `(mh-children-p ,(equal parent-change ?+)))))
499 (mh-speed-highlight mh-speed-last-selected-folder 498 (mh-speed-highlight mh-speed-last-selected-folder 'mh-speedbar-folder)
500 'mh-speedbar-folder-face)
501 (setq mh-speed-last-selected-folder nil) 499 (setq mh-speed-last-selected-folder nil)
502 (setq mh-speed-refresh-flag t))) 500 (setq mh-speed-refresh-flag t)))
503 (when (equal folder "") 501 (when (equal folder "")
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el
index d371087cc6d..da0da053119 100644
--- a/lisp/mh-e/mh-utils.el
+++ b/lisp/mh-e/mh-utils.el
@@ -1,7 +1,7 @@
1;;; mh-utils.el --- MH-E code needed for both sending and reading 1;;; mh-utils.el --- MH-E code needed for both sending and reading
2 2
3;; Copyright (C) 1993, 1995, 1997, 3;; Copyright (C) 1993, 1995, 1997,
4;; 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 4;; 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6;; Author: Bill Wohler <wohler@newt.com> 6;; Author: Bill Wohler <wohler@newt.com>
7;; Maintainer: Bill Wohler <wohler@newt.com> 7;; Maintainer: Bill Wohler <wohler@newt.com>
@@ -406,7 +406,7 @@ Argument LIMIT limits search."
406 406
407(defvar mh-letter-font-lock-keywords 407(defvar mh-letter-font-lock-keywords
408 `(,@mh-show-font-lock-keywords-with-cite 408 `(,@mh-show-font-lock-keywords-with-cite
409 (mh-font-lock-field-data (1 'mh-letter-header-field-face prepend t)))) 409 (mh-font-lock-field-data (1 'mh-letter-header-field prepend t))))
410 410
411(defun mh-show-font-lock-fontify-region (beg end loudly) 411(defun mh-show-font-lock-fontify-region (beg end loudly)
412 "Limit font-lock in `mh-show-mode' to the header. 412 "Limit font-lock in `mh-show-mode' to the header.
@@ -1218,8 +1218,8 @@ is used."
1218 (mh-funcall-if-exists 1218 (mh-funcall-if-exists
1219 insert-image (create-image 1219 insert-image (create-image
1220 raw type t 1220 raw type t
1221 :foreground (face-foreground 'mh-show-xface-face) 1221 :foreground (face-foreground 'mh-show-xface)
1222 :background (face-background 'mh-show-xface-face)) 1222 :background (face-background 'mh-show-xface))
1223 " "))) 1223 " ")))
1224 ;; XEmacs 1224 ;; XEmacs
1225 (mh-do-in-xemacs 1225 (mh-do-in-xemacs
@@ -1237,7 +1237,7 @@ is used."
1237 (set-extent-begin-glyph 1237 (set-extent-begin-glyph
1238 (make-extent (point) (point)) 1238 (make-extent (point) (point))
1239 (make-glyph (vector 'xface ':data (concat "X-Face: " x-face)))) 1239 (make-glyph (vector 'xface ':data (concat "X-Face: " x-face))))
1240 'mh-show-xface-face)) 1240 'mh-show-xface))
1241 ;; Otherwise try external support with x-face... 1241 ;; Otherwise try external support with x-face...
1242 ((and (eq type 'pbm) 1242 ((and (eq type 'pbm)
1243 (fboundp 'x-face-xmas-wl-display-x-face) 1243 (fboundp 'x-face-xmas-wl-display-x-face)