diff options
| author | Karl Heuer | 1996-02-20 19:15:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-02-20 19:15:28 +0000 |
| commit | 62c19f3145dc923eca2248fa6a991ce409255a82 (patch) | |
| tree | e05f72472c67a7aacf1d0df70e0b5a1c466639fd | |
| parent | 99ed771f8e974cf9b92617faa7c493d7bc64b371 (diff) | |
| download | emacs-62c19f3145dc923eca2248fa6a991ce409255a82.tar.gz emacs-62c19f3145dc923eca2248fa6a991ce409255a82.zip | |
Use `as-is' parameters to `custom-face-lookup'.
| -rw-r--r-- | lisp/gnus-cus.el | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/lisp/gnus-cus.el b/lisp/gnus-cus.el index 179f183b147..32e0c0c431b 100644 --- a/lisp/gnus-cus.el +++ b/lisp/gnus-cus.el | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | ;; by the user. | 34 | ;; by the user. |
| 35 | (defun gnus-make-face (color) | 35 | (defun gnus-make-face (color) |
| 36 | ;; Create entry for face with COLOR. | 36 | ;; Create entry for face with COLOR. |
| 37 | (custom-face-lookup color nil nil nil nil nil)) | 37 | (custom-face-lookup color nil nil 'as-is 'as-is 'as-is)) |
| 38 | 38 | ||
| 39 | (defvar gnus-face-light-name-list | 39 | (defvar gnus-face-light-name-list |
| 40 | '("light blue" "light cyan" "light yellow" "light pink" | 40 | '("light blue" "light cyan" "light yellow" "light pink" |
| @@ -329,38 +329,39 @@ alone.") | |||
| 329 | ((eq gnus-background-mode 'dark) | 329 | ((eq gnus-background-mode 'dark) |
| 330 | (list (list "From" nil | 330 | (list (list "From" nil |
| 331 | (custom-face-lookup | 331 | (custom-face-lookup |
| 332 | "dark blue" nil nil t t nil)) | 332 | "dark blue" nil nil t t |
| 333 | 'as-is)) | ||
| 333 | (list "Subject" nil | 334 | (list "Subject" nil |
| 334 | (custom-face-lookup | 335 | (custom-face-lookup |
| 335 | "pink" nil nil t t nil)) | 336 | "pink" nil nil t t 'as-is)) |
| 336 | (list "Newsgroups:.*," nil | 337 | (list "Newsgroups:.*," nil |
| 337 | (custom-face-lookup | 338 | (custom-face-lookup |
| 338 | "yellow" nil nil t t nil)) | 339 | "yellow" nil nil t t 'as-is)) |
| 339 | (list "" | 340 | (list "" |
| 340 | (custom-face-lookup | 341 | (custom-face-lookup |
| 341 | "cyan" nil nil t nil nil) | 342 | "cyan" nil nil t 'as-is 'as-is) |
| 342 | (custom-face-lookup | 343 | (custom-face-lookup |
| 343 | "forestgreen" | 344 | "forestgreen" |
| 344 | nil nil nil t nil)))) | 345 | nil nil 'as-is t 'as-is)))) |
| 345 | (t | 346 | (t |
| 346 | (list (list "From" nil | 347 | (list (list "From" nil |
| 347 | (custom-face-lookup | 348 | (custom-face-lookup |
| 348 | "RoyalBlue" | 349 | "RoyalBlue" |
| 349 | nil nil t t nil)) | 350 | nil nil t t 'as-is)) |
| 350 | (list "Subject" nil | 351 | (list "Subject" nil |
| 351 | (custom-face-lookup | 352 | (custom-face-lookup |
| 352 | "firebrick" | 353 | "firebrick" |
| 353 | nil nil t t nil)) | 354 | nil nil t t 'as-is)) |
| 354 | (list "Newsgroups:.*," nil | 355 | (list "Newsgroups:.*," nil |
| 355 | (custom-face-lookup | 356 | (custom-face-lookup |
| 356 | "indianred" nil nil t t nil)) | 357 | "indianred" nil nil t t 'as-is)) |
| 357 | (list "" | 358 | (list "" |
| 358 | (custom-face-lookup | 359 | (custom-face-lookup |
| 359 | "DarkGreen" | 360 | "DarkGreen" |
| 360 | nil nil t nil nil) | 361 | nil nil t 'as-is 'as-is) |
| 361 | (custom-face-lookup | 362 | (custom-face-lookup |
| 362 | "DarkGreen" | 363 | "DarkGreen" |
| 363 | nil nil nil t nil)))))) | 364 | nil nil nil t 'as-is)))))) |
| 364 | (data ((type . repeat) | 365 | (data ((type . repeat) |
| 365 | (header . nil) | 366 | (header . nil) |
| 366 | (data (type . list) | 367 | (data (type . list) |
| @@ -449,63 +450,63 @@ mark: The article's mark.") | |||
| 449 | ((< score default) . italic))) | 450 | ((< score default) . italic))) |
| 450 | ((eq gnus-background-mode 'dark) | 451 | ((eq gnus-background-mode 'dark) |
| 451 | (list (cons '(= mark gnus-canceled-mark) | 452 | (list (cons '(= mark gnus-canceled-mark) |
| 452 | (custom-face-lookup "yellow" "black" nil nil nil nil)) | 453 | (custom-face-lookup "yellow" "black" nil 'as 'as 'as)) |
| 453 | (cons '(and (> score default) | 454 | (cons '(and (> score default) |
| 454 | (or (= mark gnus-dormant-mark) | 455 | (or (= mark gnus-dormant-mark) |
| 455 | (= mark gnus-ticked-mark))) | 456 | (= mark gnus-ticked-mark))) |
| 456 | (custom-face-lookup "pink" nil nil t nil nil)) | 457 | (custom-face-lookup "pink" nil nil t 'as 'as)) |
| 457 | (cons '(and (< score default) | 458 | (cons '(and (< score default) |
| 458 | (or (= mark gnus-dormant-mark) | 459 | (or (= mark gnus-dormant-mark) |
| 459 | (= mark gnus-ticked-mark))) | 460 | (= mark gnus-ticked-mark))) |
| 460 | (custom-face-lookup "pink" nil nil nil t nil)) | 461 | (custom-face-lookup "pink" nil nil 'as t 'as)) |
| 461 | (cons '(or (= mark gnus-dormant-mark) | 462 | (cons '(or (= mark gnus-dormant-mark) |
| 462 | (= mark gnus-ticked-mark)) | 463 | (= mark gnus-ticked-mark)) |
| 463 | (custom-face-lookup "pink" nil nil nil nil nil)) | 464 | (custom-face-lookup "pink" nil nil 'as 'as 'as)) |
| 464 | 465 | ||
| 465 | (cons '(and (> score default) (= mark gnus-ancient-mark)) | 466 | (cons '(and (> score default) (= mark gnus-ancient-mark)) |
| 466 | (custom-face-lookup "dark blue" nil nil t nil nil)) | 467 | (custom-face-lookup "dark blue" nil nil t 'as 'as)) |
| 467 | (cons '(and (< score default) (= mark gnus-ancient-mark)) | 468 | (cons '(and (< score default) (= mark gnus-ancient-mark)) |
| 468 | (custom-face-lookup "SkyBlue" nil nil nil t nil)) | 469 | (custom-face-lookup "SkyBlue" nil nil 'as t 'as)) |
| 469 | (cons '(= mark gnus-ancient-mark) | 470 | (cons '(= mark gnus-ancient-mark) |
| 470 | (custom-face-lookup "SkyBlue" nil nil nil nil nil)) | 471 | (custom-face-lookup "SkyBlue" nil nil 'as 'as 'as)) |
| 471 | 472 | ||
| 472 | (cons '(and (> score default) (= mark gnus-unread-mark)) | 473 | (cons '(and (> score default) (= mark gnus-unread-mark)) |
| 473 | (custom-face-lookup "white" nil nil t nil nil)) | 474 | (custom-face-lookup "white" nil nil t 'as 'as)) |
| 474 | (cons '(and (< score default) (= mark gnus-unread-mark)) | 475 | (cons '(and (< score default) (= mark gnus-unread-mark)) |
| 475 | (custom-face-lookup "white" nil nil nil t nil)) | 476 | (custom-face-lookup "white" nil nil 'as t 'as)) |
| 476 | (cons '(= mark gnus-unread-mark) | 477 | (cons '(= mark gnus-unread-mark) |
| 477 | (custom-face-lookup "white" nil nil nil nil nil)) | 478 | (custom-face-lookup "white" nil nil 'as 'as 'as)) |
| 478 | 479 | ||
| 479 | (cons '(> score default) 'bold) | 480 | (cons '(> score default) 'bold) |
| 480 | (cons '(< score default) 'italic))) | 481 | (cons '(< score default) 'italic))) |
| 481 | (t | 482 | (t |
| 482 | (list (cons '(= mark gnus-canceled-mark) | 483 | (list (cons '(= mark gnus-canceled-mark) |
| 483 | (custom-face-lookup "yellow" "black" nil nil nil nil)) | 484 | (custom-face-lookup "yellow" "black" nil 'as 'as 'as)) |
| 484 | (cons '(and (> score default) | 485 | (cons '(and (> score default) |
| 485 | (or (= mark gnus-dormant-mark) | 486 | (or (= mark gnus-dormant-mark) |
| 486 | (= mark gnus-ticked-mark))) | 487 | (= mark gnus-ticked-mark))) |
| 487 | (custom-face-lookup "firebrick" nil nil t nil nil)) | 488 | (custom-face-lookup "firebrick" nil nil t 'as 'as)) |
| 488 | (cons '(and (< score default) | 489 | (cons '(and (< score default) |
| 489 | (or (= mark gnus-dormant-mark) | 490 | (or (= mark gnus-dormant-mark) |
| 490 | (= mark gnus-ticked-mark))) | 491 | (= mark gnus-ticked-mark))) |
| 491 | (custom-face-lookup "firebrick" nil nil nil t nil)) | 492 | (custom-face-lookup "firebrick" nil nil 'as t 'as)) |
| 492 | (cons '(or (= mark gnus-dormant-mark) | 493 | (cons '(or (= mark gnus-dormant-mark) |
| 493 | (= mark gnus-ticked-mark)) | 494 | (= mark gnus-ticked-mark)) |
| 494 | (custom-face-lookup "firebrick" nil nil nil nil nil)) | 495 | (custom-face-lookup "firebrick" nil nil 'as 'as 'as)) |
| 495 | 496 | ||
| 496 | (cons '(and (> score default) (= mark gnus-ancient-mark)) | 497 | (cons '(and (> score default) (= mark gnus-ancient-mark)) |
| 497 | (custom-face-lookup "RoyalBlue" nil nil t nil nil)) | 498 | (custom-face-lookup "RoyalBlue" nil nil t 'as 'as)) |
| 498 | (cons '(and (< score default) (= mark gnus-ancient-mark)) | 499 | (cons '(and (< score default) (= mark gnus-ancient-mark)) |
| 499 | (custom-face-lookup "RoyalBlue" nil nil nil t nil)) | 500 | (custom-face-lookup "RoyalBlue" nil nil 'as t 'as)) |
| 500 | (cons '(= mark gnus-ancient-mark) | 501 | (cons '(= mark gnus-ancient-mark) |
| 501 | (custom-face-lookup "RoyalBlue" nil nil nil nil nil)) | 502 | (custom-face-lookup "RoyalBlue" nil nil 'as 'as 'as)) |
| 502 | 503 | ||
| 503 | (cons '(and (> score default) (/= mark gnus-unread-mark)) | 504 | (cons '(and (> score default) (/= mark gnus-unread-mark)) |
| 504 | (custom-face-lookup "DarkGreen" nil nil t nil nil)) | 505 | (custom-face-lookup "DarkGreen" nil nil t 'as 'as)) |
| 505 | (cons '(and (< score default) (/= mark gnus-unread-mark)) | 506 | (cons '(and (< score default) (/= mark gnus-unread-mark)) |
| 506 | (custom-face-lookup "DarkGreen" nil nil nil t nil)) | 507 | (custom-face-lookup "DarkGreen" nil nil 'as t 'as)) |
| 507 | (cons '(/= mark gnus-unread-mark) | 508 | (cons '(/= mark gnus-unread-mark) |
| 508 | (custom-face-lookup "DarkGreen" nil nil nil nil nil)) | 509 | (custom-face-lookup "DarkGreen" nil nil 'as 'as 'as)) |
| 509 | 510 | ||
| 510 | (cons '(> score default) 'bold) | 511 | (cons '(> score default) 'bold) |
| 511 | (cons '(< score default) 'italic))))) | 512 | (cons '(< score default) 'italic))))) |