diff options
| author | Bill Wohler | 2006-01-03 18:25:26 +0000 |
|---|---|---|
| committer | Bill Wohler | 2006-01-03 18:25:26 +0000 |
| commit | 355ebcbf2599f2966069a99e25ce891e65cae3b7 (patch) | |
| tree | 79134018f2b472ec5d86885a63f73eeb244c1356 | |
| parent | e69d4e020ac232786b636d0ebd0302282e4ab6d3 (diff) | |
| download | emacs-355ebcbf2599f2966069a99e25ce891e65cae3b7.tar.gz emacs-355ebcbf2599f2966069a99e25ce891e65cae3b7.zip | |
* mh-customize.el (mh-folder-msg-number): Snow is actually off-white
on low color displays which turns to white when bold. This is
unreadable on white backgrounds. Use snow with min-colors requirement.
Use cyan on low-color displays.
* mh-init.el (mh-defface-compat): On low-color displays, delete the
high-color display rather than simply strip the min-colors requirement
since the existing algorithm shadowed the desired display on low-color
displays.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/mh-e/mh-customize.el | 16 | ||||
| -rw-r--r-- | lisp/mh-e/mh-init.el | 39 |
3 files changed, 43 insertions, 22 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index e021e74f261..4116fb4223c 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2006-01-03 Bill Wohler <wohler@newt.com> | 1 | 2006-01-03 Bill Wohler <wohler@newt.com> |
| 2 | 2 | ||
| 3 | * mh-customize.el (mh-folder-msg-number): Snow is actually | ||
| 4 | off-white on low color displays which turns to white when bold. | ||
| 5 | This is unreadable on white backgrounds. Use snow with min-colors | ||
| 6 | requirement. Use cyan on low-color displays. | ||
| 7 | |||
| 8 | * mh-init.el (mh-defface-compat): On low-color displays, delete | ||
| 9 | the high-color display rather than simply strip the min-colors | ||
| 10 | requirement since the existing algorithm shadowed the desired | ||
| 11 | display on low-color displays. | ||
| 12 | |||
| 3 | * mh-alias.el (mh-alias-add-alias): Remove leading * from | 13 | * mh-alias.el (mh-alias-add-alias): Remove leading * from |
| 4 | docstring. | 14 | docstring. |
| 5 | 15 | ||
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el index a2b667769bf..f4cde0b186f 100644 --- a/lisp/mh-e/mh-customize.el +++ b/lisp/mh-e/mh-customize.el | |||
| @@ -2536,10 +2536,14 @@ sequence." | |||
| 2536 | :group 'mh-folder) | 2536 | :group 'mh-folder) |
| 2537 | 2537 | ||
| 2538 | (defface mh-folder-msg-number | 2538 | (defface mh-folder-msg-number |
| 2539 | '((((class color) (background light)) | 2539 | (mh-defface-compat |
| 2540 | (:foreground "snow4")) | 2540 | '((((class color) (min-colors 88) (background light)) |
| 2541 | (((class color) (background dark)) | 2541 | (:foreground "snow4")) |
| 2542 | (:foreground "snow3"))) | 2542 | (((class color) (min-colors 88) (background dark)) |
| 2543 | (:foreground "snow3")) | ||
| 2544 | (((class color)) | ||
| 2545 | (:foreground "cyan")))) | ||
| 2546 | |||
| 2543 | "Message number face." | 2547 | "Message number face." |
| 2544 | :group 'mh-faces | 2548 | :group 'mh-faces |
| 2545 | :group 'mh-folder) | 2549 | :group 'mh-folder) |
| @@ -2876,7 +2880,9 @@ The background and foreground are used in the image." | |||
| 2876 | '((((class color) (background light)) | 2880 | '((((class color) (background light)) |
| 2877 | (:foreground "snow4")) | 2881 | (:foreground "snow4")) |
| 2878 | (((class color) (background dark)) | 2882 | (((class color) (background dark)) |
| 2879 | (:foreground "snow3"))))) | 2883 | (:foreground "snow3")) |
| 2884 | (((class color)) | ||
| 2885 | (:foreground "cyan"))))) | ||
| 2880 | 2886 | ||
| 2881 | 2887 | ||
| 2882 | ;; Local Variables: | 2888 | ;; Local Variables: |
diff --git a/lisp/mh-e/mh-init.el b/lisp/mh-e/mh-init.el index ba78c269439..0e19da4fa7d 100644 --- a/lisp/mh-e/mh-init.el +++ b/lisp/mh-e/mh-init.el | |||
| @@ -336,23 +336,28 @@ there. Otherwise, the images directory is added to the | |||
| 336 | "Convert SPEC for defface if necessary to run on older platforms. | 336 | "Convert SPEC for defface if necessary to run on older platforms. |
| 337 | Modifies SPEC in place and returns it. See `defface' for the spec definition. | 337 | Modifies SPEC in place and returns it. See `defface' for the spec definition. |
| 338 | 338 | ||
| 339 | When `mh-min-colors-defined-flag' is nil, this function finds a | 339 | When `mh-min-colors-defined-flag' is nil, this function finds |
| 340 | display with a single \"class\" requirement with a \"color\" | 340 | display entries with \"min-colors\" requirements and either |
| 341 | item, renames the requirement to \"tty\" and moves it to the | 341 | removes the \"min-colors\" requirement or strips the display |
| 342 | beginning of the list. It then strips any \"min-colors\" | 342 | entirely if the display does not support the number of specified |
| 343 | requirements." | 343 | colors." |
| 344 | (when (not mh-min-colors-defined-flag) | 344 | (if mh-min-colors-defined-flag |
| 345 | ;; Insert ((class tty)) display with ((class color)) attributes. | 345 | spec |
| 346 | (let ((attributes (cdr (assoc '((class color)) spec)))) | 346 | (let ((cells (display-color-cells)) |
| 347 | (cons (cons '((class tty)) attributes) spec)) | 347 | new-spec) |
| 348 | ;; Delete ((class color)) display. | 348 | ;; Remove entries with min-colors, or delete them if we have fewer colors |
| 349 | (delq (assoc '((class color)) spec) spec) | 349 | ;; than they specify. |
| 350 | ;; Strip min-colors. | 350 | (loop for entry in (reverse spec) do |
| 351 | (loop for entry in spec do | 351 | (let ((requirement (if (eq (car entry) t) |
| 352 | (when (not (eq (car entry) t)) | 352 | nil |
| 353 | (if (assoc 'min-colors (car entry)) | 353 | (assoc 'min-colors (car entry))))) |
| 354 | (delq (assoc 'min-colors (car entry)) (car entry)))))) | 354 | (if requirement |
| 355 | spec) | 355 | (when (>= cells (nth 1 requirement)) |
| 356 | (setq new-spec (cons (cons (delq requirement (car entry)) | ||
| 357 | (cdr entry)) | ||
| 358 | new-spec))) | ||
| 359 | (setq new-spec (cons entry new-spec))))) | ||
| 360 | new-spec))) | ||
| 356 | 361 | ||
| 357 | (provide 'mh-init) | 362 | (provide 'mh-init) |
| 358 | 363 | ||