gnus.el 150 KB
Newer Older
1
;;; gnus.el --- a newsreader for GNU Emacs
2

3 4
;; Copyright (C) 1987-1990, 1993-1998, 2000-2013 Free Software
;; Foundation, Inc.
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
5 6

;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
7
;;	Lars Magne Ingebrigtsen <larsi@gnus.org>
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
8
;; Keywords: news, mail
9
;; Version: 5.13
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
10 11 12

;; This file is part of GNU Emacs.

13
;; GNU Emacs is free software: you can redistribute it and/or modify
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
14
;; it under the terms of the GNU General Public License as published by
15 16
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
17 18 19

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
21 22 23
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
24
;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
25 26 27 28 29 30 31

;;; Commentary:

;;; Code:

(eval '(run-hooks 'gnus-load-hook))

32
;; For Emacs <22.2 and XEmacs.
33 34 35
(eval-and-compile
  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))

36
(eval-when-compile (require 'cl))
37
(require 'wid-edit)
38
(require 'mm-util)
39
(require 'nnheader)
40

41 42 43 44 45 46 47 48
;; These are defined afterwards with gnus-define-group-parameter
(defvar gnus-ham-process-destinations)
(defvar gnus-parameter-ham-marks-alist)
(defvar gnus-parameter-spam-marks-alist)
(defvar gnus-spam-autodetect)
(defvar gnus-spam-autodetect-methods)
(defvar gnus-spam-newsgroup-contents)
(defvar gnus-spam-process-destinations)
49 50
(defvar gnus-spam-resend-to)
(defvar gnus-ham-resend-to)
51 52 53
(defvar gnus-spam-process-newsgroups)


Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
54 55 56 57 58
(defgroup gnus nil
  "The coffee-brewing, all singing, all dancing, kitchen sink newsreader."
  :group 'news
  :group 'mail)

Miles Bader's avatar
Miles Bader committed
59 60 61 62
(defgroup gnus-start nil
  "Starting your favorite newsreader."
  :group 'gnus)

63 64 65 66
(defgroup gnus-format nil
  "Dealing with formatting issues."
  :group 'gnus)

67 68 69 70 71 72
(defgroup gnus-charset nil
  "Group character set issues."
  :link '(custom-manual "(gnus)Charsets")
  :version "21.1"
  :group 'gnus)

73 74
(defgroup gnus-cache nil
  "Cache interface."
75 76 77 78 79
  :link '(custom-manual "(gnus)Article Caching")
  :group 'gnus)

(defgroup gnus-registry nil
  "Article Registry."
80 81
  :group 'gnus)

Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
82 83 84 85 86 87 88
(defgroup gnus-start-server nil
  "Server options at startup."
  :group 'gnus-start)

;; These belong to gnus-group.el.
(defgroup gnus-group nil
  "Group buffers."
89
  :link '(custom-manual "(gnus)Group Buffer")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
  :group 'gnus)

(defgroup gnus-group-foreign nil
  "Foreign groups."
  :link '(custom-manual "(gnus)Foreign Groups")
  :group 'gnus-group)

(defgroup gnus-group-new nil
  "Automatic subscription of new groups."
  :group 'gnus-group)

(defgroup gnus-group-levels nil
  "Group levels."
  :link '(custom-manual "(gnus)Group Levels")
  :group 'gnus-group)

(defgroup gnus-group-select nil
  "Selecting a Group."
  :link '(custom-manual "(gnus)Selecting a Group")
  :group 'gnus-group)

(defgroup gnus-group-listing nil
  "Showing slices of the group list."
  :link '(custom-manual "(gnus)Listing Groups")
  :group 'gnus-group)

(defgroup gnus-group-visual nil
  "Sorting the group buffer."
  :link '(custom-manual "(gnus)Group Buffer Format")
  :group 'gnus-group
  :group 'gnus-visual)

(defgroup gnus-group-various nil
  "Various group options."
  :link '(custom-manual "(gnus)Scanning New Messages")
  :group 'gnus-group)

;; These belong to gnus-sum.el.
(defgroup gnus-summary nil
  "Summary buffers."
130
  :link '(custom-manual "(gnus)Summary Buffer")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
  :group 'gnus)

(defgroup gnus-summary-exit nil
  "Leaving summary buffers."
  :link '(custom-manual "(gnus)Exiting the Summary Buffer")
  :group 'gnus-summary)

(defgroup gnus-summary-marks nil
  "Marks used in summary buffers."
  :link '(custom-manual "(gnus)Marking Articles")
  :group 'gnus-summary)

(defgroup gnus-thread nil
  "Ordering articles according to replies."
  :link '(custom-manual "(gnus)Threading")
  :group 'gnus-summary)

(defgroup gnus-summary-format nil
  "Formatting of the summary buffer."
  :link '(custom-manual "(gnus)Summary Buffer Format")
  :group 'gnus-summary)

(defgroup gnus-summary-choose nil
  "Choosing Articles."
  :link '(custom-manual "(gnus)Choosing Articles")
  :group 'gnus-summary)

(defgroup gnus-summary-maneuvering nil
  "Summary movement commands."
  :link '(custom-manual "(gnus)Summary Maneuvering")
  :group 'gnus-summary)

163 164 165 166
(defgroup gnus-picon nil
  "Show pictures of people, domains, and newsgroups."
  :group 'gnus-visual)

Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
167 168 169 170 171 172 173
(defgroup gnus-summary-mail nil
  "Mail group commands."
  :link '(custom-manual "(gnus)Mail Group Commands")
  :group 'gnus-summary)

(defgroup gnus-summary-sort nil
  "Sorting the summary buffer."
174
  :link '(custom-manual "(gnus)Sorting the Summary Buffer")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
175 176 177 178 179 180 181 182 183 184 185 186 187
  :group 'gnus-summary)

(defgroup gnus-summary-visual nil
  "Highlighting and menus in the summary buffer."
  :link '(custom-manual "(gnus)Summary Highlighting")
  :group 'gnus-visual
  :group 'gnus-summary)

(defgroup gnus-summary-various nil
  "Various summary buffer options."
  :link '(custom-manual "(gnus)Various Summary Stuff")
  :group 'gnus-summary)

188 189 190 191 192 193 194 195 196 197 198 199
(defgroup gnus-summary-pick nil
  "Pick mode in the summary buffer."
  :link '(custom-manual "(gnus)Pick and Read")
  :prefix "gnus-pick-"
  :group 'gnus-summary)

(defgroup gnus-summary-tree nil
  "Tree display of threads in the summary buffer."
  :link '(custom-manual "(gnus)Tree Display")
  :prefix "gnus-tree-"
  :group 'gnus-summary)

Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
;; Belongs to gnus-uu.el
(defgroup gnus-extract-view nil
  "Viewing extracted files."
  :link '(custom-manual "(gnus)Viewing Files")
  :group 'gnus-extract)

;; Belongs to gnus-score.el
(defgroup gnus-score nil
  "Score and kill file handling."
  :group 'gnus)

(defgroup gnus-score-kill nil
  "Kill files."
  :group 'gnus-score)

(defgroup gnus-score-adapt nil
  "Adaptive score files."
  :group 'gnus-score)

(defgroup gnus-score-default nil
  "Default values for score files."
  :group 'gnus-score)

(defgroup gnus-score-expire nil
  "Expiring score rules."
  :group 'gnus-score)

(defgroup gnus-score-decay nil
  "Decaying score rules."
  :group 'gnus-score)

(defgroup gnus-score-files nil
  "Score and kill file names."
  :group 'gnus-score
  :group 'gnus-files)

(defgroup gnus-score-various nil
  "Various scoring and killing options."
  :group 'gnus-score)

;; Other
(defgroup gnus-visual nil
242
  "Options controlling the visual fluff."
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
243 244 245
  :group 'gnus
  :group 'faces)

246 247 248 249
(defgroup gnus-agent nil
  "Offline support for Gnus."
  :group 'gnus)

Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
(defgroup gnus-files nil
  "Files used by Gnus."
  :group 'gnus)

(defgroup gnus-dribble-file nil
  "Auto save file."
  :link '(custom-manual "(gnus)Auto Save")
  :group 'gnus-files)

(defgroup gnus-newsrc nil
  "Storing Gnus state."
  :group 'gnus-files)

(defgroup gnus-server nil
  "Options related to newsservers and other servers used by Gnus."
  :group 'gnus)

267 268 269 270 271
(defgroup gnus-server-visual nil
  "Highlighting and menus in the server buffer."
  :group 'gnus-visual
  :group 'gnus-server)

Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
272 273 274 275 276
(defgroup gnus-message '((message custom-group))
  "Composing replies and followups in Gnus."
  :group 'gnus)

(defgroup gnus-meta nil
277
  "Meta variables controlling major portions of Gnus.
278
In general, modifying these variables does not take effect until Gnus
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
279 280 281 282 283 284 285 286 287
is restarted, and sometimes reloaded."
  :group 'gnus)

(defgroup gnus-various nil
  "Other Gnus options."
  :link '(custom-manual "(gnus)Various Various")
  :group 'gnus)

(defgroup gnus-exit nil
288
  "Exiting Gnus."
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
289 290 291
  :link '(custom-manual "(gnus)Exiting Gnus")
  :group 'gnus)

292 293 294 295 296
(defgroup gnus-fun nil
  "Frivolous Gnus extensions."
  :link '(custom-manual "(gnus)Exiting Gnus")
  :group 'gnus)

297
(defconst gnus-version-number "5.13"
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
298 299
  "Version number for this version of Gnus.")

300
(defconst gnus-version (format "Gnus v%s" gnus-version-number)
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
301 302 303 304 305 306 307 308 309 310 311
  "Version string for this version of Gnus.")

(defcustom gnus-inhibit-startup-message nil
  "If non-nil, the startup message will not be displayed.
This variable is used before `.gnus.el' is loaded, so it should
be set in `.emacs' instead."
  :group 'gnus-start
  :type 'boolean)

(unless (featurep 'gnus-xmas)
  (defalias 'gnus-make-overlay 'make-overlay)
312
  (defalias 'gnus-delete-overlay 'delete-overlay)
Katsumi Yamaoka's avatar
Katsumi Yamaoka committed
313
  (defalias 'gnus-overlay-get 'overlay-get)
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
314 315
  (defalias 'gnus-overlay-put 'overlay-put)
  (defalias 'gnus-move-overlay 'move-overlay)
Dave Love's avatar
Dave Love committed
316 317
  (defalias 'gnus-overlay-buffer 'overlay-buffer)
  (defalias 'gnus-overlay-start 'overlay-start)
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
318
  (defalias 'gnus-overlay-end 'overlay-end)
Katsumi Yamaoka's avatar
Katsumi Yamaoka committed
319
  (defalias 'gnus-overlays-in 'overlays-in)
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
320 321 322 323
  (defalias 'gnus-extent-detached-p 'ignore)
  (defalias 'gnus-extent-start-open 'ignore)
  (defalias 'gnus-mail-strip-quoted-names 'mail-strip-quoted-names)
  (defalias 'gnus-character-to-event 'identity)
324
  (defalias 'gnus-assq-delete-all 'assq-delete-all)
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
325 326
  (defalias 'gnus-add-text-properties 'add-text-properties)
  (defalias 'gnus-put-text-property 'put-text-property)
327 328 329
  (defvar gnus-mode-line-image-cache t)
  (if (fboundp 'find-image)
      (defun gnus-mode-line-buffer-identification (line)
330 331
	(let ((str (car-safe line))
	      (load-path (mm-image-load-path)))
332 333 334 335 336 337 338 339 340
	  (if (and (stringp str)
		   (string-match "^Gnus:" str))
	      (progn (add-text-properties
		      0 5
		      (list 'display
			    (if (eq t gnus-mode-line-image-cache)
				(setq gnus-mode-line-image-cache
				      (find-image
				       '((:type xpm :file "gnus-pointer.xpm"
341
						:ascent center)
342
					 (:type xbm :file "gnus-pointer.xbm"
343
						:ascent center))))
344
			      gnus-mode-line-image-cache)
345 346 347
			    'help-echo (format
					"This is %s, %s."
					gnus-version (gnus-emacs-version)))
348 349 350 351
		      str)
		     (list str))
	    line)))
    (defalias 'gnus-mode-line-buffer-identification 'identity))
352 353
  (defalias 'gnus-deactivate-mark 'deactivate-mark)
  (defalias 'gnus-window-edges 'window-edges)
354
  (defalias 'gnus-key-press-event-p 'numberp)
355 356
  ;;(defalias 'gnus-decode-rfc1522 'ignore)
  )
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
357 358 359 360

;; We define these group faces here to avoid the display
;; update forced when creating new faces.

361
(defface gnus-group-news-1
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
362 363
  '((((class color)
      (background dark))
364
     (:foreground "PaleTurquoise" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
365 366
    (((class color)
      (background light))
367
     (:foreground "ForestGreen" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
368 369
    (t
     ()))
370 371
  "Level 1 newsgroup face."
  :group 'gnus-group)
372 373
;; backward-compatibility alias
(put 'gnus-group-news-1-face 'face-alias 'gnus-group-news-1)
374
(put 'gnus-group-news-1-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
375

376
(defface gnus-group-news-1-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
377 378 379 380 381 382 383 384
  '((((class color)
      (background dark))
     (:foreground "PaleTurquoise"))
    (((class color)
      (background light))
     (:foreground "ForestGreen"))
    (t
     ()))
385 386
  "Level 1 empty newsgroup face."
  :group 'gnus-group)
387 388
;; backward-compatibility alias
(put 'gnus-group-news-1-empty-face 'face-alias 'gnus-group-news-1-empty)
389
(put 'gnus-group-news-1-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
390

391
(defface gnus-group-news-2
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
392 393
  '((((class color)
      (background dark))
394
     (:foreground "turquoise" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
395 396
    (((class color)
      (background light))
397
     (:foreground "CadetBlue4" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
398 399
    (t
     ()))
400 401
  "Level 2 newsgroup face."
  :group 'gnus-group)
402 403
;; backward-compatibility alias
(put 'gnus-group-news-2-face 'face-alias 'gnus-group-news-2)
404
(put 'gnus-group-news-2-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
405

406
(defface gnus-group-news-2-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
407 408 409 410 411 412 413 414
  '((((class color)
      (background dark))
     (:foreground "turquoise"))
    (((class color)
      (background light))
     (:foreground "CadetBlue4"))
    (t
     ()))
415 416
  "Level 2 empty newsgroup face."
  :group 'gnus-group)
417 418
;; backward-compatibility alias
(put 'gnus-group-news-2-empty-face 'face-alias 'gnus-group-news-2-empty)
419
(put 'gnus-group-news-2-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
420

421
(defface gnus-group-news-3
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
422 423
  '((((class color)
      (background dark))
424
     (:bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
425 426
    (((class color)
      (background light))
427
     (:bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
428 429
    (t
     ()))
430 431
  "Level 3 newsgroup face."
  :group 'gnus-group)
432 433
;; backward-compatibility alias
(put 'gnus-group-news-3-face 'face-alias 'gnus-group-news-3)
434
(put 'gnus-group-news-3-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
435

436
(defface gnus-group-news-3-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
437 438 439 440 441 442 443 444
  '((((class color)
      (background dark))
     ())
    (((class color)
      (background light))
     ())
    (t
     ()))
445 446
  "Level 3 empty newsgroup face."
  :group 'gnus-group)
447 448
;; backward-compatibility alias
(put 'gnus-group-news-3-empty-face 'face-alias 'gnus-group-news-3-empty)
449
(put 'gnus-group-news-3-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
450

451
(defface gnus-group-news-4
452 453
  '((((class color)
      (background dark))
454
     (:bold t))
455 456
    (((class color)
      (background light))
457
     (:bold t))
458 459
    (t
     ()))
460 461
  "Level 4 newsgroup face."
  :group 'gnus-group)
462 463
;; backward-compatibility alias
(put 'gnus-group-news-4-face 'face-alias 'gnus-group-news-4)
464
(put 'gnus-group-news-4-face 'obsolete-face "22.1")
465

466
(defface gnus-group-news-4-empty
467 468 469 470 471 472 473 474
  '((((class color)
      (background dark))
     ())
    (((class color)
      (background light))
     ())
    (t
     ()))
475 476
  "Level 4 empty newsgroup face."
  :group 'gnus-group)
477 478
;; backward-compatibility alias
(put 'gnus-group-news-4-empty-face 'face-alias 'gnus-group-news-4-empty)
479
(put 'gnus-group-news-4-empty-face 'obsolete-face "22.1")
480

481
(defface gnus-group-news-5
482 483
  '((((class color)
      (background dark))
484
     (:bold t))
485 486
    (((class color)
      (background light))
487
     (:bold t))
488 489
    (t
     ()))
490 491
  "Level 5 newsgroup face."
  :group 'gnus-group)
492 493
;; backward-compatibility alias
(put 'gnus-group-news-5-face 'face-alias 'gnus-group-news-5)
494
(put 'gnus-group-news-5-face 'obsolete-face "22.1")
495

496
(defface gnus-group-news-5-empty
497 498 499 500 501 502 503 504
  '((((class color)
      (background dark))
     ())
    (((class color)
      (background light))
     ())
    (t
     ()))
505 506
  "Level 5 empty newsgroup face."
  :group 'gnus-group)
507 508
;; backward-compatibility alias
(put 'gnus-group-news-5-empty-face 'face-alias 'gnus-group-news-5-empty)
509
(put 'gnus-group-news-5-empty-face 'obsolete-face "22.1")
510

511
(defface gnus-group-news-6
512 513
  '((((class color)
      (background dark))
514
     (:bold t))
515 516
    (((class color)
      (background light))
517
     (:bold t))
518 519
    (t
     ()))
520 521
  "Level 6 newsgroup face."
  :group 'gnus-group)
522 523
;; backward-compatibility alias
(put 'gnus-group-news-6-face 'face-alias 'gnus-group-news-6)
524
(put 'gnus-group-news-6-face 'obsolete-face "22.1")
525

526
(defface gnus-group-news-6-empty
527 528 529 530 531 532 533 534
  '((((class color)
      (background dark))
     ())
    (((class color)
      (background light))
     ())
    (t
     ()))
535 536
  "Level 6 empty newsgroup face."
  :group 'gnus-group)
537 538
;; backward-compatibility alias
(put 'gnus-group-news-6-empty-face 'face-alias 'gnus-group-news-6-empty)
539
(put 'gnus-group-news-6-empty-face 'obsolete-face "22.1")
540

541
(defface gnus-group-news-low
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
542 543
  '((((class color)
      (background dark))
544
     (:foreground "DarkTurquoise" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
545 546
    (((class color)
      (background light))
547
     (:foreground "DarkGreen" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
548 549
    (t
     ()))
550 551
  "Low level newsgroup face."
  :group 'gnus-group)
552 553
;; backward-compatibility alias
(put 'gnus-group-news-low-face 'face-alias 'gnus-group-news-low)
554
(put 'gnus-group-news-low-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
555

556
(defface gnus-group-news-low-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
557 558 559 560 561 562 563 564
  '((((class color)
      (background dark))
     (:foreground "DarkTurquoise"))
    (((class color)
      (background light))
     (:foreground "DarkGreen"))
    (t
     ()))
565 566
  "Low level empty newsgroup face."
  :group 'gnus-group)
567 568
;; backward-compatibility alias
(put 'gnus-group-news-low-empty-face 'face-alias 'gnus-group-news-low-empty)
569
(put 'gnus-group-news-low-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
570

571
(defface gnus-group-mail-1
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
572 573
  '((((class color)
      (background dark))
574
     (:foreground "#e1ffe1" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
575 576
    (((class color)
      (background light))
577
     (:foreground "DeepPink3" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
578
    (t
579
     (:bold t)))
580 581
  "Level 1 mailgroup face."
  :group 'gnus-group)
582 583
;; backward-compatibility alias
(put 'gnus-group-mail-1-face 'face-alias 'gnus-group-mail-1)
584
(put 'gnus-group-mail-1-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
585

586
(defface gnus-group-mail-1-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
587 588
  '((((class color)
      (background dark))
589
     (:foreground "#e1ffe1"))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
590 591 592 593
    (((class color)
      (background light))
     (:foreground "DeepPink3"))
    (t
594
     (:italic t :bold t)))
595 596
  "Level 1 empty mailgroup face."
  :group 'gnus-group)
597 598
;; backward-compatibility alias
(put 'gnus-group-mail-1-empty-face 'face-alias 'gnus-group-mail-1-empty)
599
(put 'gnus-group-mail-1-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
600

601
(defface gnus-group-mail-2
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
602 603
  '((((class color)
      (background dark))
604
     (:foreground "DarkSeaGreen1" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
605 606
    (((class color)
      (background light))
607
     (:foreground "HotPink3" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
608
    (t
609
     (:bold t)))
610 611
  "Level 2 mailgroup face."
  :group 'gnus-group)
612 613
;; backward-compatibility alias
(put 'gnus-group-mail-2-face 'face-alias 'gnus-group-mail-2)
614
(put 'gnus-group-mail-2-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
615

616
(defface gnus-group-mail-2-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
617 618
  '((((class color)
      (background dark))
619
     (:foreground "DarkSeaGreen1"))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
620 621 622 623
    (((class color)
      (background light))
     (:foreground "HotPink3"))
    (t
624
     (:bold t)))
625 626
  "Level 2 empty mailgroup face."
  :group 'gnus-group)
627 628
;; backward-compatibility alias
(put 'gnus-group-mail-2-empty-face 'face-alias 'gnus-group-mail-2-empty)
629
(put 'gnus-group-mail-2-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
630

631
(defface gnus-group-mail-3
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
632 633
  '((((class color)
      (background dark))
634
     (:foreground "aquamarine1" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
635 636
    (((class color)
      (background light))
637
     (:foreground "magenta4" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
638
    (t
639
     (:bold t)))
640 641
  "Level 3 mailgroup face."
  :group 'gnus-group)
642 643
;; backward-compatibility alias
(put 'gnus-group-mail-3-face 'face-alias 'gnus-group-mail-3)
644
(put 'gnus-group-mail-3-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
645

646
(defface gnus-group-mail-3-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
647 648
  '((((class color)
      (background dark))
649
     (:foreground "aquamarine1"))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
650 651 652 653 654
    (((class color)
      (background light))
     (:foreground "magenta4"))
    (t
     ()))
655 656
  "Level 3 empty mailgroup face."
  :group 'gnus-group)
657 658
;; backward-compatibility alias
(put 'gnus-group-mail-3-empty-face 'face-alias 'gnus-group-mail-3-empty)
659
(put 'gnus-group-mail-3-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
660

661
(defface gnus-group-mail-low
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
662 663
  '((((class color)
      (background dark))
664
     (:foreground "aquamarine2" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
665 666
    (((class color)
      (background light))
667
     (:foreground "DeepPink4" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
668
    (t
669
     (:bold t)))
670 671
  "Low level mailgroup face."
  :group 'gnus-group)
672 673
;; backward-compatibility alias
(put 'gnus-group-mail-low-face 'face-alias 'gnus-group-mail-low)
674
(put 'gnus-group-mail-low-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
675

676
(defface gnus-group-mail-low-empty
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
677 678
  '((((class color)
      (background dark))
679
     (:foreground "aquamarine2"))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
680 681 682 683
    (((class color)
      (background light))
     (:foreground "DeepPink4"))
    (t
684
     (:bold t)))
685 686
  "Low level empty mailgroup face."
  :group 'gnus-group)
687 688
;; backward-compatibility alias
(put 'gnus-group-mail-low-empty-face 'face-alias 'gnus-group-mail-low-empty)
689
(put 'gnus-group-mail-low-empty-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
690 691 692

;; Summary mode faces.

693
(defface gnus-summary-selected '((t (:underline t)))
694 695
  "Face used for selected articles."
  :group 'gnus-summary)
696 697
;; backward-compatibility alias
(put 'gnus-summary-selected-face 'face-alias 'gnus-summary-selected)
698
(put 'gnus-summary-selected-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
699

700
(defface gnus-summary-cancelled
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
701 702
  '((((class color))
     (:foreground "yellow" :background "black")))
Paul Eggert's avatar
Paul Eggert committed
703
  "Face used for canceled articles."
704
  :group 'gnus-summary)
705 706
;; backward-compatibility alias
(put 'gnus-summary-cancelled-face 'face-alias 'gnus-summary-cancelled)
707
(put 'gnus-summary-cancelled-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
708

709
(defface gnus-summary-high-ticked
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
710 711
  '((((class color)
      (background dark))
712
     (:foreground "pink" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
713 714
    (((class color)
      (background light))
715
     (:foreground "firebrick" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
716
    (t
717
     (:bold t)))
718 719
  "Face used for high interest ticked articles."
  :group 'gnus-summary)
720 721
;; backward-compatibility alias
(put 'gnus-summary-high-ticked-face 'face-alias 'gnus-summary-high-ticked)
722
(put 'gnus-summary-high-ticked-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
723

724
(defface gnus-summary-low-ticked
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
725 726
  '((((class color)
      (background dark))
727
     (:foreground "pink" :italic t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
728 729
    (((class color)
      (background light))
730
     (:foreground "firebrick" :italic t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
731
    (t
732
     (:italic t)))
733 734
  "Face used for low interest ticked articles."
  :group 'gnus-summary)
735 736
;; backward-compatibility alias
(put 'gnus-summary-low-ticked-face 'face-alias 'gnus-summary-low-ticked)
737
(put 'gnus-summary-low-ticked-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
738

739
(defface gnus-summary-normal-ticked
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
740 741 742 743 744 745 746 747
  '((((class color)
      (background dark))
     (:foreground "pink"))
    (((class color)
      (background light))
     (:foreground "firebrick"))
    (t
     ()))
748 749
  "Face used for normal interest ticked articles."
  :group 'gnus-summary)
750 751
;; backward-compatibility alias
(put 'gnus-summary-normal-ticked-face 'face-alias 'gnus-summary-normal-ticked)
752
(put 'gnus-summary-normal-ticked-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
753

754
(defface gnus-summary-high-ancient
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
755 756
  '((((class color)
      (background dark))
757
     (:foreground "SkyBlue" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
758 759
    (((class color)
      (background light))
760
     (:foreground "RoyalBlue" :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
761
    (t
762
     (:bold t)))
763 764
  "Face used for high interest ancient articles."
  :group 'gnus-summary)
765 766
;; backward-compatibility alias
(put 'gnus-summary-high-ancient-face 'face-alias 'gnus-summary-high-ancient)
767
(put 'gnus-summary-high-ancient-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
768

769
(defface gnus-summary-low-ancient
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
770 771
  '((((class color)
      (background dark))
772
     (:foreground "SkyBlue" :italic t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
773 774
    (((class color)
      (background light))
775
     (:foreground "RoyalBlue" :italic t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
776
    (t
777
     (:italic t)))
778 779
  "Face used for low interest ancient articles."
  :group 'gnus-summary)
780 781
;; backward-compatibility alias
(put 'gnus-summary-low-ancient-face 'face-alias 'gnus-summary-low-ancient)
782
(put 'gnus-summary-low-ancient-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
783

784
(defface gnus-summary-normal-ancient
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
785 786 787 788 789 790 791 792
  '((((class color)
      (background dark))
     (:foreground "SkyBlue"))
    (((class color)
      (background light))
     (:foreground "RoyalBlue"))
    (t
     ()))
793 794
  "Face used for normal interest ancient articles."
  :group 'gnus-summary)
795 796
;; backward-compatibility alias
(put 'gnus-summary-normal-ancient-face 'face-alias 'gnus-summary-normal-ancient)
797
(put 'gnus-summary-normal-ancient-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
798

799
(defface gnus-summary-high-undownloaded
800 801 802 803 804 805
   '((((class color)
       (background light))
      (:bold t :foreground "cyan4"))
     (((class color) (background dark))
      (:bold t :foreground "LightGray"))
     (t (:inverse-video t :bold t)))
806 807
  "Face used for high interest uncached articles."
  :group 'gnus-summary)
808 809
;; backward-compatibility alias
(put 'gnus-summary-high-undownloaded-face 'face-alias 'gnus-summary-high-undownloaded)
810
(put 'gnus-summary-high-undownloaded-face 'obsolete-face "22.1")
811

812
(defface gnus-summary-low-undownloaded
813 814 815 816 817 818
   '((((class color)
       (background light))
      (:italic t :foreground "cyan4" :bold nil))
     (((class color) (background dark))
      (:italic t :foreground "LightGray" :bold nil))
     (t (:inverse-video t :italic t)))
819 820
  "Face used for low interest uncached articles."
  :group 'gnus-summary)
821 822
;; backward-compatibility alias
(put 'gnus-summary-low-undownloaded-face 'face-alias 'gnus-summary-low-undownloaded)
823
(put 'gnus-summary-low-undownloaded-face 'obsolete-face "22.1")
824

825
(defface gnus-summary-normal-undownloaded
826 827 828 829 830 831
   '((((class color)
       (background light))
      (:foreground "cyan4" :bold nil))
     (((class color) (background dark))
      (:foreground "LightGray" :bold nil))
     (t (:inverse-video t)))
832 833
  "Face used for normal interest uncached articles."
  :group 'gnus-summary)
834 835
;; backward-compatibility alias
(put 'gnus-summary-normal-undownloaded-face 'face-alias 'gnus-summary-normal-undownloaded)
836
(put 'gnus-summary-normal-undownloaded-face 'obsolete-face "22.1")
837

838
(defface gnus-summary-high-unread
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
839
  '((t
840
     (:bold t)))
841 842
  "Face used for high interest unread articles."
  :group 'gnus-summary)
843 844
;; backward-compatibility alias
(put 'gnus-summary-high-unread-face 'face-alias 'gnus-summary-high-unread)
845
(put 'gnus-summary-high-unread-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
846

847
(defface gnus-summary-low-unread
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
848
  '((t
849
     (:italic t)))
850 851
  "Face used for low interest unread articles."
  :group 'gnus-summary)
852 853
;; backward-compatibility alias
(put 'gnus-summary-low-unread-face 'face-alias 'gnus-summary-low-unread)
854
(put 'gnus-summary-low-unread-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
855

856
(defface gnus-summary-normal-unread
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
857 858
  '((t
     ()))
859 860
  "Face used for normal interest unread articles."
  :group 'gnus-summary)
861 862
;; backward-compatibility alias
(put 'gnus-summary-normal-unread-face 'face-alias 'gnus-summary-normal-unread)
863
(put 'gnus-summary-normal-unread-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
864

865
(defface gnus-summary-high-read
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
866 867 868
  '((((class color)
      (background dark))
     (:foreground "PaleGreen"
869
		  :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
870 871 872
    (((class color)
      (background light))
     (:foreground "DarkGreen"
873
		  :bold t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
874
    (t
875
     (:bold t)))
876 877
  "Face used for high interest read articles."
  :group 'gnus-summary)
878 879
;; backward-compatibility alias
(put 'gnus-summary-high-read-face 'face-alias 'gnus-summary-high-read)
880
(put 'gnus-summary-high-read-face 'obsolete-face "22.1")
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
881

882
(defface gnus-summary-low-read
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
883 884 885
  '((((class color)
      (background dark))
     (:foreground "PaleGreen"
886
		  :italic t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
887 888 889
    (((class color)
      (background light))
     (:foreground "DarkGreen"
890
		  :italic t))
Lars Magne Ingebrigtsen's avatar
Lars Magne Ingebrigtsen committed
891
    (t