annotate lisp/gnus/gnus-cus.el @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 0293115a14e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; gnus-cus.el --- User friendly customization of Gnus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;; Copyright (C) 1995,96 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Author: Per Abrahamsen <abraham@iesd.auc.dk>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Keywords: help, news
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Version: 0.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 (require 'custom)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (require 'gnus-ems)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (require 'browse-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (eval-when-compile (require 'cl))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;; The following is just helper functions and data, not meant to be set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;; by the user.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (defun gnus-make-face (color)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;; Create entry for face with COLOR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (custom-face-lookup color nil nil nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (defvar gnus-face-light-name-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 '("light blue" "light cyan" "light yellow" "light pink"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 "pale green" "beige" "orange" "magenta" "violet" "medium purple"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 "turquoise"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defvar gnus-face-dark-name-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 '("dark blue" "firebrick" "dark green" "OrangeRed"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 "dark khaki" "dark violet" "SteelBlue4"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ; CornflowerBlue SeaGreen OrangeRed SteelBlue4 DeepPink3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ; DarkOlviveGreen4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (custom-declare '()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 '((tag . "Gnus")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 The coffee-brewing, all singing, all dancing, kitchen sink newsreader.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (type . group)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ((tag . "Visual")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 Gnus can be made colorful and fun or grey and dull as you wish.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (type . group)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ((tag . "Visual")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (doc . "Enable visual features.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 If `visual' is disabled, there will be no menus and few faces. Most of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 the visual customization options below will be ignored. Gnus will use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 less space and be faster as a result.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (summary-highlight group-highlight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 article-highlight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 mouse-face
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 summary-menu group-menu article-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 tree-highlight menu highlight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 browse-menu server-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 page-marker tree-menu binary-menu pick-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 grouplens-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (name . gnus-visual)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (type . sexp))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ((tag . "WWW Browser")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 WWW Browser to call when clicking on an URL button in the article buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 You can choose between one of the predefined browsers, or `Other'.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (name . browse-url-browser-function)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (calculate . (cond ((boundp 'browse-url-browser-function)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 browse-url-browser-function)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ((fboundp 'w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 'w3-fetch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ((eq window-system 'x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 'gnus-netscape-open-url)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (type . choice)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ((tag . "W3")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (default . w3-fetch))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ((tag . "Netscape")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (default . browse-url-netscape))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ((prompt . "Other")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 You must specify the name of a Lisp function here. The lisp function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 should open a WWW browser when called with an URL (a string).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (default . __uninitialized__)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (type . symbol))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 ((tag . "Mouse Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 Face used for group or summary buffer mouse highlighting.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 The line beneath the mouse pointer will be highlighted with this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 face.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (name . gnus-mouse-face)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
111 (calculate . (condition-case ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
112 (if (gnus-visual-p 'mouse-face 'highlight)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
113 (if (boundp 'gnus-mouse-face)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
114 gnus-mouse-face
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
115 'highlight)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
116 'default)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
117 (error nil)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (type . face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ((tag . "Article Display")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (doc . "Controls how the article buffer will look.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 If you leave the list empty, the article will appear exactly as it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 stored on the disk. The list entries will hide or highlight various
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 parts of the article, making it easier to find the information you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 want.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (name . gnus-article-display-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (type . list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (calculate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 . (if (and (string-match "xemacs" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (featurep 'xface))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 '(gnus-article-hide-headers-if-wanted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 gnus-article-hide-boring-headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 gnus-article-treat-overstrike
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 gnus-article-maybe-highlight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 gnus-article-display-x-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 '(gnus-article-hide-headers-if-wanted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 gnus-article-hide-boring-headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 gnus-article-treat-overstrike
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 gnus-article-maybe-highlight)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ((type . repeat)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (header . nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (tag . "Filter")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (type . choice)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ((tag . "Treat Overstrike")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 Convert use of overstrike into bold and underline.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 Two identical letters separated by a backspace are displayed as a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 single bold letter, while a letter followed by a backspace and an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 underscore will be displayed as a single underlined letter. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 technique was developed for old line printers (think about it), and is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 still in use on some newsgroups, in particular the ClariNet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 hierarchy.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 gnus-article-treat-overstrike))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ((tag . "Word Wrap")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 Format too long lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (default . gnus-article-word-wrap))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ((tag . "Remove CR")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 Remove carriage returns from an article.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (default . gnus-article-remove-cr))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 ((tag . "Display X-Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 Look for an X-Face header and display it if present.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 See also `X Face Command' for a definition of the external command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 used for decoding and displaying the face.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (default . gnus-article-display-x-face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ((tag . "Unquote Printable")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 Transform MIME quoted printable into 8-bit characters.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 Quoted printable is often seen by strings like `=EF' where you would
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 expect a non-English letter.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 gnus-article-de-quoted-unreadable))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ((tag . "Universal Time")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 Convert date header to universal time.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (default . gnus-article-date-ut))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ((tag . "Local Time")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 Convert date header to local timezone.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (default . gnus-article-date-local))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ((tag . "Lapsed Time")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 Replace date header with a header showing the articles age.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (default . gnus-article-date-lapsed))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ((tag . "Highlight")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 Highlight headers, citations, signature, and buttons.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 (default . gnus-article-highlight))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 ((tag . "Maybe Highlight")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 Highlight headers, signature, and buttons if `Visual' is turned on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 gnus-article-maybe-highlight))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 ((tag . "Highlight Some")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 Highlight headers, signature, and buttons.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 (default . gnus-article-highlight-some))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ((tag . "Highlight Headers")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 Highlight headers as specified by `Article Header Highlighting'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 gnus-article-highlight-headers))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ((tag . "Highlight Signature")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 Highlight the signature as specified by `Article Signature Face'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 gnus-article-highlight-signature))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ((tag . "Citation")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 Highlight the citations as specified by `Citation Faces'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 gnus-article-highlight-citation))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 ((tag . "Hide")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 Hide unwanted headers, excess citation, and the signature.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 (default . gnus-article-hide))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ((tag . "Hide Headers If Wanted")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 Hide headers, but allow user to display them with `t' or `v'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 gnus-article-hide-headers-if-wanted))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 ((tag . "Hide Headers")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 Hide unwanted headers and possibly sort them as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 Most likely you want to use `Hide Headers If Wanted' instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 (default . gnus-article-hide-headers))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ((tag . "Hide Signature")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 Hide the signature.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 (default . gnus-article-hide-signature))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 ((tag . "Hide Excess Citations")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 Hide excess citation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 Excess is defined by `Citation Hide Percentage' and `Citation Hide Absolute'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 (default .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 gnus-article-hide-citation-maybe))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 ((tag . "Hide Citations")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 Hide all cited text.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 (default . gnus-article-hide-citation))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 ((tag . "Add Buttons")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 Make URL's into clickable buttons.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 (type . const)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 (default . gnus-article-add-buttons))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 ((prompt . "Other")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 Name of Lisp function to call.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 Push the `Filter' button to select one of the predefined filters.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 (type . symbol)))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 ((tag . "Article Button Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 Face used for highlighting buttons in the article buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 An article button is a piece of text that you can activate by pressing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 `RET' or `mouse-2' above it.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 (name . gnus-article-button-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 (default . bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 (type . face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ((tag . "Article Mouse Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 Face used for mouse highlighting in the article buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 Article buttons will be displayed in this face when the cursor is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 above them.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 (name . gnus-article-mouse-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 (default . highlight)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 (type . face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ((tag . "Article Signature Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 Face used for highlighting a signature in the article buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 (name . gnus-signature-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 (default . italic)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 (type . face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ((tag . "Article Header Highlighting")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 Controls highlighting of article header.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 Below is a list of article header names, and the faces used for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 displaying the name and content of the header. The `Header' field
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 should contain the name of the header. The field actually contains a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 regular expression that should match the beginning of the header line,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 but if you don't know what a regular expression is, just write the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 name of the header. The second field is the `Name' field, which
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
338 determines how the header name (i.e. the part of the header left
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 of the `:') is displayed. The third field is the `Content' field,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 which determines how the content (i.e. the part of the header right of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 the `:') is displayed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 If you leave the last `Header' field in the list empty, the `Name' and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 `Content' fields will determine how headers not listed above are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 displayed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 If you only want to change the display of the name part for a specific
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 header, specify `None' in the `Content' field. Similarly, specify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 `None' in the `Name' field if you only want to leave the name part
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 alone.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 (name . gnus-header-face-alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 (type . list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 (calculate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 . (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ((not (eq gnus-display-type 'color))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 '(("" bold italic)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ((eq gnus-background-mode 'dark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 (list "From" nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 (custom-face-lookup "light blue" nil nil t t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 (list "Subject" nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 (custom-face-lookup "pink" nil nil t t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 (list "Newsgroups:.*," nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 (custom-face-lookup "yellow" nil nil t t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 (custom-face-lookup "cyan" nil nil t nil nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 (custom-face-lookup "forestgreen" nil nil nil t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 nil))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 (list "From" nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 (custom-face-lookup "MidnightBlue" nil nil t t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 (list "Subject" nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 (custom-face-lookup "firebrick" nil nil t t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 (list "Newsgroups:.*," nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 (custom-face-lookup "indianred" nil nil t t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 (list ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 "DarkGreen" nil nil t nil nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 (custom-face-lookup "DarkGreen" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 nil t nil))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 ((type . repeat)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 (header . nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 (type . list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 (compact . t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ((type . string)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 (prompt . "Header")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 (tag . "Header "))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 "\n "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 ((type . face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 (prompt . "Name")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 (tag . "Name "))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 "\n "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 ((type . face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 (tag . "Content"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 "\n")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 ((tag . "Attribution Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 Face used for attribution lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 It is merged with the face for the cited text belonging to the attribution.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 (name . gnus-cite-attribution-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 (default . underline)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 (type . face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 ((tag . "Citation Faces")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 List of faces used for highlighting citations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 When there are citations from multiple articles in the same message,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 Gnus will try to give each citation from each article its own face.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 This should make it easier to see who wrote what.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 (name . gnus-cite-face-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 (import . gnus-custom-import-cite-face-list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 (type . list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 (calculate . (cond ((not (eq gnus-display-type 'color))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 '(italic))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 ((eq gnus-background-mode 'dark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 (mapcar 'gnus-make-face
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 gnus-face-light-name-list))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 (mapcar 'gnus-make-face
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 gnus-face-dark-name-list))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ((type . repeat)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 (header . nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 (data (type . face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 (tag . "Face")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ((tag . "Citation Hide Percentage")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 Only hide excess citation if above this percentage of the body.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 (name . gnus-cite-hide-percentage)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 (default . 50)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 (type . integer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ((tag . "Citation Hide Absolute")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 Only hide excess citation if above this number of lines in the body.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 (name . gnus-cite-hide-absolute)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 (default . 10)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 (type . integer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ((tag . "Summary Selected Face")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 Face used for highlighting the current article in the summary buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 (name . gnus-summary-selected-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 (default . underline)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 (type . face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 ((tag . "Summary Line Highlighting")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 Controls the highlighting of summary buffer lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 Below is a list of `Form'/`Face' pairs. When deciding how a a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 particular summary line should be displayed, each form is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 evaluated. The content of the face field after the first true form is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 used. You can change how those summary lines are displayed, by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 editing the face field.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 It is also possible to change and add form fields, but currently that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 requires an understanding of Lisp expressions. Hopefully this will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 change in a future release. For now, you can use the following
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 variables in the Lisp expression:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 score: The article's score
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 default: The default article score.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 below: The score below which articles are automatically marked as read.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 mark: The article's mark.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 (name . gnus-summary-highlight)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 (type . list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 (calculate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 . (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 ((not (eq gnus-display-type 'color))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 '(((> score default) . bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 ((< score default) . italic)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 ((eq gnus-background-mode 'dark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 '(= mark gnus-canceled-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 (custom-face-lookup "yellow" "black" nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 (cons '(and (> score default)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 (or (= mark gnus-dormant-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 (= mark gnus-ticked-mark)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 "pink" nil nil t nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 (cons '(and (< score default)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 (or (= mark gnus-dormant-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 (= mark gnus-ticked-mark)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 (custom-face-lookup "pink" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 nil t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 (cons '(or (= mark gnus-dormant-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 (= mark gnus-ticked-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 "pink" nil nil nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 '(and (> score default) (= mark gnus-ancient-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 (custom-face-lookup "medium blue" nil nil t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 '(and (< score default) (= mark gnus-ancient-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 (custom-face-lookup "SkyBlue" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 nil t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 '(= mark gnus-ancient-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 (custom-face-lookup "SkyBlue" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 (cons '(and (> score default) (= mark gnus-unread-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 (custom-face-lookup "white" nil nil t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 (cons '(and (< score default) (= mark gnus-unread-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 (custom-face-lookup "white" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 nil t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 (cons '(= mark gnus-unread-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 "white" nil nil nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 (cons '(> score default) 'bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 (cons '(< score default) 'italic)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 '(= mark gnus-canceled-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 "yellow" "black" nil nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 (cons '(and (> score default)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 (or (= mark gnus-dormant-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 (= mark gnus-ticked-mark)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 (custom-face-lookup "firebrick" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 t nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 (cons '(and (< score default)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 (or (= mark gnus-dormant-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 (= mark gnus-ticked-mark)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 (custom-face-lookup "firebrick" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 nil t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 '(or (= mark gnus-dormant-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 (= mark gnus-ticked-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 "firebrick" nil nil nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 (cons '(and (> score default) (= mark gnus-ancient-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 (custom-face-lookup "RoyalBlue" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 t nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 (cons '(and (< score default) (= mark gnus-ancient-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 (custom-face-lookup "RoyalBlue" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 nil t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 '(= mark gnus-ancient-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 (custom-face-lookup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 "RoyalBlue" nil nil nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 (cons '(and (> score default) (/= mark gnus-unread-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 (custom-face-lookup "DarkGreen" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 t nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 (cons '(and (< score default) (/= mark gnus-unread-mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 (custom-face-lookup "DarkGreen" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 nil t nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 (cons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 '(/= mark gnus-unread-mark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 (custom-face-lookup "DarkGreen" nil nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 nil nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 (cons '(> score default) 'bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 (cons '(< score default) 'italic)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 ((type . repeat)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 (header . nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 (data (type . pair)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 (compact . t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 (data ((type . sexp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 (width . 60)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 (tag . "Form"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 "\n "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 ((type . face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 (tag . "Face"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 "\n")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 ((tag . "Group Line Highlighting")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 (doc . "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 Controls the highlighting of group buffer lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 Below is a list of `Form'/`Face' pairs. When deciding how a a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 particular group line should be displayed, each form is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 evaluated. The content of the face field after the first true form is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 used. You can change how those group lines are displayed by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 editing the face field.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 It is also possible to change and add form fields, but currently that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 requires an understanding of Lisp expressions. Hopefully this will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 change in a future release. For now, you can use the following
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 variables in the Lisp expression:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 group: The name of the group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 unread: The number of unread articles in the group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 method: The select method used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 mailp: Whether it's a mail group or not.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 level: The level of the group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 score: The score of the group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 ticked: The number of ticked articles.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 (name . gnus-group-highlight)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 (type . list)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 (calculate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 . (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 ((not (eq gnus-display-type 'color))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 '((mailp . bold)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 ((= unread 0) . italic)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 ((eq gnus-background-mode 'dark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 `(((and (not mailp) (eq level 1)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 ,(custom-face-lookup "PaleTurquoise" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 ((and (not mailp) (eq level 2)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 ,(custom-face-lookup "turquoise" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 ((and (not mailp) (eq level 3)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 ,(custom-face-lookup "MediumTurquoise" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 ((and (not mailp) (>= level 4)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 ,(custom-face-lookup "DarkTurquoise" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 ((and mailp (eq level 1)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 ,(custom-face-lookup "aquamarine1" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 ((and mailp (eq level 2)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 ,(custom-face-lookup "aquamarine2" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 ((and mailp (eq level 3)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 ,(custom-face-lookup "aquamarine3" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 ((and mailp (>= level 4)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 ,(custom-face-lookup "aquamarine4" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 `(((and (not mailp) (<= level 3)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 ,(custom-face-lookup "ForestGreen" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 ((and (not mailp) (eq level 4)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 ,(custom-face-lookup "DarkGreen" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 ((and (not mailp) (eq level 5)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 ,(custom-face-lookup "CadetBlue4" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 ((and mailp (eq level 1)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 ,(custom-face-lookup "DeepPink3" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 ((and mailp (eq level 2)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 ,(custom-face-lookup "HotPink3" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 ((and mailp (eq level 3)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 ,(custom-face-lookup "dark magenta" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 ((and mailp (eq level 4)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 ,(custom-face-lookup "DeepPink4" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 ((and mailp (> level 4)) .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 ,(custom-face-lookup "DarkOrchid4" nil nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 ))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 (data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 ((type . repeat)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 (header . nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 (data (type . pair)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 (compact . t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 (data ((type . sexp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 (width . 60)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 (tag . "Form"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 "\n "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 ((type . face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 (tag . "Face"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 "\n")))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 ;; Do not define `gnus-button-alist' before we have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 ;; some `complexity' attribute so we can hide it from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 ;; beginners.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 )))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 (defun gnus-custom-import-cite-face-list (custom alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 ;; Backward compatible grokking of light and dark.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 (cond ((eq alist 'light)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 (setq alist (mapcar 'gnus-make-face gnus-face-light-name-list)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 ((eq alist 'dark)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 (setq alist (mapcar 'gnus-make-face gnus-face-dark-name-list))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 (funcall (custom-super custom 'import) custom alist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 (provide 'gnus-cus)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 ;;; gnus-cus.el ends here