1 ;;; gnus.el --- a newsreader for GNU Emacs
3 ;; Copyright (C) 1987-1990, 1993-1998, 2000-2011
4 ;; Free Software Foundation, Inc.
6 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
7 ;; Lars Magne Ingebrigtsen <larsi@gnus.org>
8 ;; Keywords: news, mail
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
29 (eval '(run-hooks 'gnus-load-hook))
31 ;; For Emacs <22.2 and XEmacs.
33 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
35 (eval-when-compile (require 'cl))
40 ;; These are defined afterwards with gnus-define-group-parameter
41 (defvar gnus-ham-process-destinations)
42 (defvar gnus-parameter-ham-marks-alist)
43 (defvar gnus-parameter-spam-marks-alist)
44 (defvar gnus-spam-autodetect)
45 (defvar gnus-spam-autodetect-methods)
46 (defvar gnus-spam-newsgroup-contents)
47 (defvar gnus-spam-process-destinations)
48 (defvar gnus-spam-resend-to)
49 (defvar gnus-ham-resend-to)
50 (defvar gnus-spam-process-newsgroups)
54 "The coffee-brewing, all singing, all dancing, kitchen sink newsreader."
58 (defgroup gnus-start nil
59 "Starting your favorite newsreader."
62 (defgroup gnus-format nil
63 "Dealing with formatting issues."
66 (defgroup gnus-charset nil
67 "Group character set issues."
68 :link '(custom-manual "(gnus)Charsets")
72 (defgroup gnus-cache nil
74 :link '(custom-manual "(gnus)Article Caching")
77 (defgroup gnus-registry nil
81 (defgroup gnus-start-server nil
82 "Server options at startup."
85 ;; These belong to gnus-group.el.
86 (defgroup gnus-group nil
88 :link '(custom-manual "(gnus)Group Buffer")
91 (defgroup gnus-group-foreign nil
93 :link '(custom-manual "(gnus)Foreign Groups")
96 (defgroup gnus-group-new nil
97 "Automatic subscription of new groups."
100 (defgroup gnus-group-levels nil
102 :link '(custom-manual "(gnus)Group Levels")
105 (defgroup gnus-group-select nil
107 :link '(custom-manual "(gnus)Selecting a Group")
110 (defgroup gnus-group-listing nil
111 "Showing slices of the group list."
112 :link '(custom-manual "(gnus)Listing Groups")
115 (defgroup gnus-group-visual nil
116 "Sorting the group buffer."
117 :link '(custom-manual "(gnus)Group Buffer Format")
121 (defgroup gnus-group-various nil
122 "Various group options."
123 :link '(custom-manual "(gnus)Scanning New Messages")
126 ;; These belong to gnus-sum.el.
127 (defgroup gnus-summary nil
129 :link '(custom-manual "(gnus)Summary Buffer")
132 (defgroup gnus-summary-exit nil
133 "Leaving summary buffers."
134 :link '(custom-manual "(gnus)Exiting the Summary Buffer")
135 :group 'gnus-summary)
137 (defgroup gnus-summary-marks nil
138 "Marks used in summary buffers."
139 :link '(custom-manual "(gnus)Marking Articles")
140 :group 'gnus-summary)
142 (defgroup gnus-thread nil
143 "Ordering articles according to replies."
144 :link '(custom-manual "(gnus)Threading")
145 :group 'gnus-summary)
147 (defgroup gnus-summary-format nil
148 "Formatting of the summary buffer."
149 :link '(custom-manual "(gnus)Summary Buffer Format")
150 :group 'gnus-summary)
152 (defgroup gnus-summary-choose nil
154 :link '(custom-manual "(gnus)Choosing Articles")
155 :group 'gnus-summary)
157 (defgroup gnus-summary-maneuvering nil
158 "Summary movement commands."
159 :link '(custom-manual "(gnus)Summary Maneuvering")
160 :group 'gnus-summary)
162 (defgroup gnus-picon nil
163 "Show pictures of people, domains, and newsgroups."
166 (defgroup gnus-summary-mail nil
167 "Mail group commands."
168 :link '(custom-manual "(gnus)Mail Group Commands")
169 :group 'gnus-summary)
171 (defgroup gnus-summary-sort nil
172 "Sorting the summary buffer."
173 :link '(custom-manual "(gnus)Sorting the Summary Buffer")
174 :group 'gnus-summary)
176 (defgroup gnus-summary-visual nil
177 "Highlighting and menus in the summary buffer."
178 :link '(custom-manual "(gnus)Summary Highlighting")
180 :group 'gnus-summary)
182 (defgroup gnus-summary-various nil
183 "Various summary buffer options."
184 :link '(custom-manual "(gnus)Various Summary Stuff")
185 :group 'gnus-summary)
187 (defgroup gnus-summary-pick nil
188 "Pick mode in the summary buffer."
189 :link '(custom-manual "(gnus)Pick and Read")
191 :group 'gnus-summary)
193 (defgroup gnus-summary-tree nil
194 "Tree display of threads in the summary buffer."
195 :link '(custom-manual "(gnus)Tree Display")
197 :group 'gnus-summary)
199 ;; Belongs to gnus-uu.el
200 (defgroup gnus-extract-view nil
201 "Viewing extracted files."
202 :link '(custom-manual "(gnus)Viewing Files")
203 :group 'gnus-extract)
205 ;; Belongs to gnus-score.el
206 (defgroup gnus-score nil
207 "Score and kill file handling."
210 (defgroup gnus-score-kill nil
214 (defgroup gnus-score-adapt nil
215 "Adaptive score files."
218 (defgroup gnus-score-default nil
219 "Default values for score files."
222 (defgroup gnus-score-expire nil
223 "Expiring score rules."
226 (defgroup gnus-score-decay nil
227 "Decaying score rules."
230 (defgroup gnus-score-files nil
231 "Score and kill file names."
235 (defgroup gnus-score-various nil
236 "Various scoring and killing options."
240 (defgroup gnus-visual nil
241 "Options controlling the visual fluff."
245 (defgroup gnus-agent nil
246 "Offline support for Gnus."
249 (defgroup gnus-files nil
250 "Files used by Gnus."
253 (defgroup gnus-dribble-file nil
255 :link '(custom-manual "(gnus)Auto Save")
258 (defgroup gnus-newsrc nil
259 "Storing Gnus state."
262 (defgroup gnus-server nil
263 "Options related to newsservers and other servers used by Gnus."
266 (defgroup gnus-server-visual nil
267 "Highlighting and menus in the server buffer."
271 (defgroup gnus-message '((message custom-group))
272 "Composing replies and followups in Gnus."
275 (defgroup gnus-meta nil
276 "Meta variables controlling major portions of Gnus.
277 In general, modifying these variables does not take effect until Gnus
278 is restarted, and sometimes reloaded."
281 (defgroup gnus-various nil
282 "Other Gnus options."
283 :link '(custom-manual "(gnus)Various Various")
286 (defgroup gnus-exit nil
288 :link '(custom-manual "(gnus)Exiting Gnus")
291 (defgroup gnus-fun nil
292 "Frivolous Gnus extensions."
293 :link '(custom-manual "(gnus)Exiting Gnus")
296 (defconst gnus-version-number "0.18"
297 "Version number for this version of Gnus.")
299 (defconst gnus-version (format "No Gnus v%s" gnus-version-number)
300 "Version string for this version of Gnus.")
302 (defcustom gnus-inhibit-startup-message nil
303 "If non-nil, the startup message will not be displayed.
304 This variable is used before `.gnus.el' is loaded, so it should
305 be set in `.emacs' instead."
309 (unless (featurep 'gnus-xmas)
310 (defalias 'gnus-make-overlay 'make-overlay)
311 (defalias 'gnus-delete-overlay 'delete-overlay)
312 (defalias 'gnus-overlay-get 'overlay-get)
313 (defalias 'gnus-overlay-put 'overlay-put)
314 (defalias 'gnus-move-overlay 'move-overlay)
315 (defalias 'gnus-overlay-buffer 'overlay-buffer)
316 (defalias 'gnus-overlay-start 'overlay-start)
317 (defalias 'gnus-overlay-end 'overlay-end)
318 (defalias 'gnus-overlays-in 'overlays-in)
319 (defalias 'gnus-extent-detached-p 'ignore)
320 (defalias 'gnus-extent-start-open 'ignore)
321 (defalias 'gnus-mail-strip-quoted-names 'mail-strip-quoted-names)
322 (defalias 'gnus-character-to-event 'identity)
323 (defalias 'gnus-assq-delete-all 'assq-delete-all)
324 (defalias 'gnus-add-text-properties 'add-text-properties)
325 (defalias 'gnus-put-text-property 'put-text-property)
326 (defvar gnus-mode-line-image-cache t)
327 (if (fboundp 'find-image)
328 (defun gnus-mode-line-buffer-identification (line)
329 (let ((str (car-safe line))
330 (load-path (mm-image-load-path)))
331 (if (and (stringp str)
332 (string-match "^Gnus:" str))
333 (progn (add-text-properties
336 (if (eq t gnus-mode-line-image-cache)
337 (setq gnus-mode-line-image-cache
339 '((:type xpm :file "gnus-pointer.xpm"
341 (:type xbm :file "gnus-pointer.xbm"
343 gnus-mode-line-image-cache)
346 gnus-version (gnus-emacs-version)))
350 (defalias 'gnus-mode-line-buffer-identification 'identity))
351 (defalias 'gnus-deactivate-mark 'deactivate-mark)
352 (defalias 'gnus-window-edges 'window-edges)
353 (defalias 'gnus-key-press-event-p 'numberp)
354 ;;(defalias 'gnus-decode-rfc1522 'ignore)
357 ;; We define these group faces here to avoid the display
358 ;; update forced when creating new faces.
360 (defface gnus-group-news-1
363 (:foreground "PaleTurquoise" :bold t))
366 (:foreground "ForestGreen" :bold t))
369 "Level 1 newsgroup face."
371 ;; backward-compatibility alias
372 (put 'gnus-group-news-1-face 'face-alias 'gnus-group-news-1)
373 (put 'gnus-group-news-1-face 'obsolete-face "22.1")
375 (defface gnus-group-news-1-empty
378 (:foreground "PaleTurquoise"))
381 (:foreground "ForestGreen"))
384 "Level 1 empty newsgroup face."
386 ;; backward-compatibility alias
387 (put 'gnus-group-news-1-empty-face 'face-alias 'gnus-group-news-1-empty)
388 (put 'gnus-group-news-1-empty-face 'obsolete-face "22.1")
390 (defface gnus-group-news-2
393 (:foreground "turquoise" :bold t))
396 (:foreground "CadetBlue4" :bold t))
399 "Level 2 newsgroup face."
401 ;; backward-compatibility alias
402 (put 'gnus-group-news-2-face 'face-alias 'gnus-group-news-2)
403 (put 'gnus-group-news-2-face 'obsolete-face "22.1")
405 (defface gnus-group-news-2-empty
408 (:foreground "turquoise"))
411 (:foreground "CadetBlue4"))
414 "Level 2 empty newsgroup face."
416 ;; backward-compatibility alias
417 (put 'gnus-group-news-2-empty-face 'face-alias 'gnus-group-news-2-empty)
418 (put 'gnus-group-news-2-empty-face 'obsolete-face "22.1")
420 (defface gnus-group-news-3
429 "Level 3 newsgroup face."
431 ;; backward-compatibility alias
432 (put 'gnus-group-news-3-face 'face-alias 'gnus-group-news-3)
433 (put 'gnus-group-news-3-face 'obsolete-face "22.1")
435 (defface gnus-group-news-3-empty
444 "Level 3 empty newsgroup face."
446 ;; backward-compatibility alias
447 (put 'gnus-group-news-3-empty-face 'face-alias 'gnus-group-news-3-empty)
448 (put 'gnus-group-news-3-empty-face 'obsolete-face "22.1")
450 (defface gnus-group-news-4
459 "Level 4 newsgroup face."
461 ;; backward-compatibility alias
462 (put 'gnus-group-news-4-face 'face-alias 'gnus-group-news-4)
463 (put 'gnus-group-news-4-face 'obsolete-face "22.1")
465 (defface gnus-group-news-4-empty
474 "Level 4 empty newsgroup face."
476 ;; backward-compatibility alias
477 (put 'gnus-group-news-4-empty-face 'face-alias 'gnus-group-news-4-empty)
478 (put 'gnus-group-news-4-empty-face 'obsolete-face "22.1")
480 (defface gnus-group-news-5
489 "Level 5 newsgroup face."
491 ;; backward-compatibility alias
492 (put 'gnus-group-news-5-face 'face-alias 'gnus-group-news-5)
493 (put 'gnus-group-news-5-face 'obsolete-face "22.1")
495 (defface gnus-group-news-5-empty
504 "Level 5 empty newsgroup face."
506 ;; backward-compatibility alias
507 (put 'gnus-group-news-5-empty-face 'face-alias 'gnus-group-news-5-empty)
508 (put 'gnus-group-news-5-empty-face 'obsolete-face "22.1")
510 (defface gnus-group-news-6
519 "Level 6 newsgroup face."
521 ;; backward-compatibility alias
522 (put 'gnus-group-news-6-face 'face-alias 'gnus-group-news-6)
523 (put 'gnus-group-news-6-face 'obsolete-face "22.1")
525 (defface gnus-group-news-6-empty
534 "Level 6 empty newsgroup face."
536 ;; backward-compatibility alias
537 (put 'gnus-group-news-6-empty-face 'face-alias 'gnus-group-news-6-empty)
538 (put 'gnus-group-news-6-empty-face 'obsolete-face "22.1")
540 (defface gnus-group-news-low
543 (:foreground "DarkTurquoise" :bold t))
546 (:foreground "DarkGreen" :bold t))
549 "Low level newsgroup face."
551 ;; backward-compatibility alias
552 (put 'gnus-group-news-low-face 'face-alias 'gnus-group-news-low)
553 (put 'gnus-group-news-low-face 'obsolete-face "22.1")
555 (defface gnus-group-news-low-empty
558 (:foreground "DarkTurquoise"))
561 (:foreground "DarkGreen"))
564 "Low level empty newsgroup face."
566 ;; backward-compatibility alias
567 (put 'gnus-group-news-low-empty-face 'face-alias 'gnus-group-news-low-empty)
568 (put 'gnus-group-news-low-empty-face 'obsolete-face "22.1")
570 (defface gnus-group-mail-1
573 (:foreground "#e1ffe1" :bold t))
576 (:foreground "DeepPink3" :bold t))
579 "Level 1 mailgroup face."
581 ;; backward-compatibility alias
582 (put 'gnus-group-mail-1-face 'face-alias 'gnus-group-mail-1)
583 (put 'gnus-group-mail-1-face 'obsolete-face "22.1")
585 (defface gnus-group-mail-1-empty
588 (:foreground "#e1ffe1"))
591 (:foreground "DeepPink3"))
593 (:italic t :bold t)))
594 "Level 1 empty mailgroup face."
596 ;; backward-compatibility alias
597 (put 'gnus-group-mail-1-empty-face 'face-alias 'gnus-group-mail-1-empty)
598 (put 'gnus-group-mail-1-empty-face 'obsolete-face "22.1")
600 (defface gnus-group-mail-2
603 (:foreground "DarkSeaGreen1" :bold t))
606 (:foreground "HotPink3" :bold t))
609 "Level 2 mailgroup face."
611 ;; backward-compatibility alias
612 (put 'gnus-group-mail-2-face 'face-alias 'gnus-group-mail-2)
613 (put 'gnus-group-mail-2-face 'obsolete-face "22.1")
615 (defface gnus-group-mail-2-empty
618 (:foreground "DarkSeaGreen1"))
621 (:foreground "HotPink3"))
624 "Level 2 empty mailgroup face."
626 ;; backward-compatibility alias
627 (put 'gnus-group-mail-2-empty-face 'face-alias 'gnus-group-mail-2-empty)
628 (put 'gnus-group-mail-2-empty-face 'obsolete-face "22.1")
630 (defface gnus-group-mail-3
633 (:foreground "aquamarine1" :bold t))
636 (:foreground "magenta4" :bold t))
639 "Level 3 mailgroup face."
641 ;; backward-compatibility alias
642 (put 'gnus-group-mail-3-face 'face-alias 'gnus-group-mail-3)
643 (put 'gnus-group-mail-3-face 'obsolete-face "22.1")
645 (defface gnus-group-mail-3-empty
648 (:foreground "aquamarine1"))
651 (:foreground "magenta4"))
654 "Level 3 empty mailgroup face."
656 ;; backward-compatibility alias
657 (put 'gnus-group-mail-3-empty-face 'face-alias 'gnus-group-mail-3-empty)
658 (put 'gnus-group-mail-3-empty-face 'obsolete-face "22.1")
660 (defface gnus-group-mail-low
663 (:foreground "aquamarine2" :bold t))
666 (:foreground "DeepPink4" :bold t))
669 "Low level mailgroup face."
671 ;; backward-compatibility alias
672 (put 'gnus-group-mail-low-face 'face-alias 'gnus-group-mail-low)
673 (put 'gnus-group-mail-low-face 'obsolete-face "22.1")
675 (defface gnus-group-mail-low-empty
678 (:foreground "aquamarine2"))
681 (:foreground "DeepPink4"))
684 "Low level empty mailgroup face."
686 ;; backward-compatibility alias
687 (put 'gnus-group-mail-low-empty-face 'face-alias 'gnus-group-mail-low-empty)
688 (put 'gnus-group-mail-low-empty-face 'obsolete-face "22.1")
690 ;; Summary mode faces.
692 (defface gnus-summary-selected '((t (:underline t)))
693 "Face used for selected articles."
694 :group 'gnus-summary)
695 ;; backward-compatibility alias
696 (put 'gnus-summary-selected-face 'face-alias 'gnus-summary-selected)
697 (put 'gnus-summary-selected-face 'obsolete-face "22.1")
699 (defface gnus-summary-cancelled
701 (:foreground "yellow" :background "black")))
702 "Face used for cancelled articles."
703 :group 'gnus-summary)
704 ;; backward-compatibility alias
705 (put 'gnus-summary-cancelled-face 'face-alias 'gnus-summary-cancelled)
706 (put 'gnus-summary-cancelled-face 'obsolete-face "22.1")
708 (defface gnus-summary-high-ticked
711 (:foreground "pink" :bold t))
714 (:foreground "firebrick" :bold t))
717 "Face used for high interest ticked articles."
718 :group 'gnus-summary)
719 ;; backward-compatibility alias
720 (put 'gnus-summary-high-ticked-face 'face-alias 'gnus-summary-high-ticked)
721 (put 'gnus-summary-high-ticked-face 'obsolete-face "22.1")
723 (defface gnus-summary-low-ticked
726 (:foreground "pink" :italic t))
729 (:foreground "firebrick" :italic t))
732 "Face used for low interest ticked articles."
733 :group 'gnus-summary)
734 ;; backward-compatibility alias
735 (put 'gnus-summary-low-ticked-face 'face-alias 'gnus-summary-low-ticked)
736 (put 'gnus-summary-low-ticked-face 'obsolete-face "22.1")
738 (defface gnus-summary-normal-ticked
741 (:foreground "pink"))
744 (:foreground "firebrick"))
747 "Face used for normal interest ticked articles."
748 :group 'gnus-summary)
749 ;; backward-compatibility alias
750 (put 'gnus-summary-normal-ticked-face 'face-alias 'gnus-summary-normal-ticked)
751 (put 'gnus-summary-normal-ticked-face 'obsolete-face "22.1")
753 (defface gnus-summary-high-ancient
756 (:foreground "SkyBlue" :bold t))
759 (:foreground "RoyalBlue" :bold t))
762 "Face used for high interest ancient articles."
763 :group 'gnus-summary)
764 ;; backward-compatibility alias
765 (put 'gnus-summary-high-ancient-face 'face-alias 'gnus-summary-high-ancient)
766 (put 'gnus-summary-high-ancient-face 'obsolete-face "22.1")
768 (defface gnus-summary-low-ancient
771 (:foreground "SkyBlue" :italic t))
774 (:foreground "RoyalBlue" :italic t))
777 "Face used for low interest ancient articles."
778 :group 'gnus-summary)
779 ;; backward-compatibility alias
780 (put 'gnus-summary-low-ancient-face 'face-alias 'gnus-summary-low-ancient)
781 (put 'gnus-summary-low-ancient-face 'obsolete-face "22.1")
783 (defface gnus-summary-normal-ancient
786 (:foreground "SkyBlue"))
789 (:foreground "RoyalBlue"))
792 "Face used for normal interest ancient articles."
793 :group 'gnus-summary)
794 ;; backward-compatibility alias
795 (put 'gnus-summary-normal-ancient-face 'face-alias 'gnus-summary-normal-ancient)
796 (put 'gnus-summary-normal-ancient-face 'obsolete-face "22.1")
798 (defface gnus-summary-high-undownloaded
801 (:bold t :foreground "cyan4"))
802 (((class color) (background dark))
803 (:bold t :foreground "LightGray"))
804 (t (:inverse-video t :bold t)))
805 "Face used for high interest uncached articles."
806 :group 'gnus-summary)
807 ;; backward-compatibility alias
808 (put 'gnus-summary-high-undownloaded-face 'face-alias 'gnus-summary-high-undownloaded)
809 (put 'gnus-summary-high-undownloaded-face 'obsolete-face "22.1")
811 (defface gnus-summary-low-undownloaded
814 (:italic t :foreground "cyan4" :bold nil))
815 (((class color) (background dark))
816 (:italic t :foreground "LightGray" :bold nil))
817 (t (:inverse-video t :italic t)))
818 "Face used for low interest uncached articles."
819 :group 'gnus-summary)
820 ;; backward-compatibility alias
821 (put 'gnus-summary-low-undownloaded-face 'face-alias 'gnus-summary-low-undownloaded)
822 (put 'gnus-summary-low-undownloaded-face 'obsolete-face "22.1")
824 (defface gnus-summary-normal-undownloaded
827 (:foreground "cyan4" :bold nil))
828 (((class color) (background dark))
829 (:foreground "LightGray" :bold nil))
830 (t (:inverse-video t)))
831 "Face used for normal interest uncached articles."
832 :group 'gnus-summary)
833 ;; backward-compatibility alias
834 (put 'gnus-summary-normal-undownloaded-face 'face-alias 'gnus-summary-normal-undownloaded)
835 (put 'gnus-summary-normal-undownloaded-face 'obsolete-face "22.1")
837 (defface gnus-summary-high-unread
840 "Face used for high interest unread articles."
841 :group 'gnus-summary)
842 ;; backward-compatibility alias
843 (put 'gnus-summary-high-unread-face 'face-alias 'gnus-summary-high-unread)
844 (put 'gnus-summary-high-unread-face 'obsolete-face "22.1")
846 (defface gnus-summary-low-unread
849 "Face used for low interest unread articles."
850 :group 'gnus-summary)
851 ;; backward-compatibility alias
852 (put 'gnus-summary-low-unread-face 'face-alias 'gnus-summary-low-unread)
853 (put 'gnus-summary-low-unread-face 'obsolete-face "22.1")
855 (defface gnus-summary-normal-unread
858 "Face used for normal interest unread articles."
859 :group 'gnus-summary)
860 ;; backward-compatibility alias
861 (put 'gnus-summary-normal-unread-face 'face-alias 'gnus-summary-normal-unread)
862 (put 'gnus-summary-normal-unread-face 'obsolete-face "22.1")
864 (defface gnus-summary-high-read
867 (:foreground "PaleGreen"
871 (:foreground "DarkGreen"
875 "Face used for high interest read articles."
876 :group 'gnus-summary)
877 ;; backward-compatibility alias
878 (put 'gnus-summary-high-read-face 'face-alias 'gnus-summary-high-read)
879 (put 'gnus-summary-high-read-face 'obsolete-face "22.1")
881 (defface gnus-summary-low-read
884 (:foreground "PaleGreen"
888 (:foreground "DarkGreen"
892 "Face used for low interest read articles."
893 :group 'gnus-summary)
894 ;; backward-compatibility alias
895 (put 'gnus-summary-low-read-face 'face-alias 'gnus-summary-low-read)
896 (put 'gnus-summary-low-read-face 'obsolete-face "22.1")
898 (defface gnus-summary-normal-read
901 (:foreground "PaleGreen"))
904 (:foreground "DarkGreen"))
907 "Face used for normal interest read articles."
908 :group 'gnus-summary)
909 ;; backward-compatibility alias
910 (put 'gnus-summary-normal-read-face 'face-alias 'gnus-summary-normal-read)
911 (put 'gnus-summary-normal-read-face 'obsolete-face "22.1")
918 (defvar gnus-buffers nil
919 "List of buffers handled by Gnus.")
921 (defun gnus-get-buffer-create (name)
922 "Do the same as `get-buffer-create', but store the created buffer."
923 (or (get-buffer name)
924 (car (push (get-buffer-create name) gnus-buffers))))
926 (defun gnus-add-buffer ()
927 "Add the current buffer to the list of Gnus buffers."
928 (push (current-buffer) gnus-buffers))
930 (defmacro gnus-kill-buffer (buffer)
931 "Kill BUFFER and remove from the list of Gnus buffers."
932 `(let ((buf ,buffer))
933 (when (gnus-buffer-exists-p buf)
934 (setq gnus-buffers (delete (get-buffer buf) gnus-buffers))
937 (defun gnus-buffers ()
938 "Return a list of live Gnus buffers."
939 (while (and gnus-buffers
940 (not (buffer-name (car gnus-buffers))))
942 (let ((buffers gnus-buffers))
944 (if (buffer-name (cadr buffers))
946 (setcdr buffers (cddr buffers)))))
951 (defvar gnus-group-buffer "*Group*"
952 "Name of the Gnus group buffer.")
957 (:foreground "#cccccc"))
960 (:foreground "#888888"))
963 "Face for the splash screen."
965 ;; backward-compatibility alias
966 (put 'gnus-splash-face 'face-alias 'gnus-splash)
967 (put 'gnus-splash-face 'obsolete-face "22.1")
969 (defun gnus-splash ()
971 (switch-to-buffer (gnus-get-buffer-create gnus-group-buffer))
972 (let ((buffer-read-only nil))
974 (unless gnus-inhibit-startup-message
975 (gnus-group-startup-message)
978 (defun gnus-indent-rigidly (start end arg)
979 "Indent rigidly using only spaces and no tabs."
982 (narrow-to-region start end)
984 (indent-rigidly start end arg)
985 ;; We translate tabs into spaces -- not everybody uses
986 ;; an 8-character tab.
987 (goto-char (point-min))
988 (while (search-forward "\t" nil t)
989 (replace-match " " t t))))))
991 ;;(format "%02x%02x%02x" 114 66 20) "724214"
993 (defvar gnus-logo-color-alist
994 '((flame "#cc3300" "#ff2200")
995 (pine "#c0cc93" "#f8ffb8")
996 (moss "#a1cc93" "#d2ffb8")
997 (irish "#04cc90" "#05ff97")
998 (sky "#049acc" "#05deff")
999 (tin "#6886cc" "#82b6ff")
1000 (velvet "#7c68cc" "#8c82ff")
1001 (grape "#b264cc" "#cf7df")
1002 (labia "#cc64c2" "#fd7dff")
1003 (berry "#cc6485" "#ff7db5")
1004 (dino "#724214" "#1e3f03")
1005 (oort "#cccccc" "#888888")
1006 (storm "#666699" "#99ccff")
1007 (pdino "#9999cc" "#99ccff")
1008 (purp "#9999cc" "#666699")
1009 (no "#ff0000" "#ffff00")
1010 (neutral "#b4b4b4" "#878787")
1011 (september "#bf9900" "#ffcc00"))
1012 "Color alist used for the Gnus logo.")
1014 (defcustom gnus-logo-color-style 'no
1015 "*Color styles used for the Gnus logo."
1016 :type `(choice ,@(mapcar (lambda (elem) (list 'const (car elem)))
1017 gnus-logo-color-alist))
1020 (defvar gnus-logo-colors
1021 (cdr (assq gnus-logo-color-style gnus-logo-color-alist))
1022 "Colors used for the Gnus logo.")
1024 (declare-function image-size "image.c" (spec &optional pixels frame))
1026 (defun gnus-group-startup-message (&optional x y)
1027 "Insert startup message in current buffer."
1028 ;; Insert the message.
1031 (fboundp 'find-image)
1033 ;; Make sure the library defining `image-load-path' is
1034 ;; loaded (`find-image' is autoloaded) (and discard the
1035 ;; result). Else, we may get "defvar ignored because
1036 ;; image-load-path is let-bound" when calling `find-image'
1038 (or (find-image '(nil (:type xpm :file "gnus.xpm"))) t)
1039 (let* ((data-directory (nnheader-find-etc-directory "images/gnus"))
1040 (image-load-path (cond (data-directory
1041 (list data-directory))
1042 ((boundp 'image-load-path)
1043 (symbol-value 'image-load-path))
1045 (image (gnus-splash-svg-color-symbols (find-image
1046 `((:type svg :file "gnus.svg"
1048 (("#bf9900" . ,(car gnus-logo-colors))
1049 ("#ffcc00" . ,(cadr gnus-logo-colors))))
1050 (:type xpm :file "gnus.xpm"
1052 (("thing" . ,(car gnus-logo-colors))
1053 ("shadow" . ,(cadr gnus-logo-colors))))
1054 (:type png :file "gnus.png")
1055 (:type pbm :file "gnus.pbm"
1056 ;; Account for the pbm's background.
1057 :background ,(face-foreground 'gnus-splash)
1058 :foreground ,(face-background 'default))
1059 (:type xbm :file "gnus.xbm"
1060 ;; Account for the xbm's background.
1061 :background ,(face-foreground 'gnus-splash)
1062 :foreground ,(face-background 'default)))))))
1064 (let ((size (image-size image)))
1065 (insert-char ?\n (max 0 (round (- (window-height)
1066 (or y (cdr size)) 1) 2)))
1067 (insert-char ?\ (max 0 (round (- (window-width)
1068 (or x (car size))) 2)))
1069 (insert-image image))
1070 (goto-char (point-min))
1075 _ ___ __ ___ __ _ ___
1093 ;; And then hack it.
1094 (gnus-indent-rigidly (point-min) (point-max)
1095 (/ (max (- (window-width) (or x 46)) 0) 2))
1096 (goto-char (point-min))
1098 (let* ((pheight (count-lines (point-min) (point-max)))
1099 (wheight (window-height))
1100 (rest (- wheight pheight)))
1101 (insert (make-string (max 0 (* 2 (/ rest 3))) ?\n)))
1103 (put-text-property (point-min) (point-max) 'face 'gnus-splash)
1104 (goto-char (point-min))
1105 (setq mode-line-buffer-identification (concat " " gnus-version))
1106 (set-buffer-modified-p t)))
1108 (defun gnus-splash-svg-color-symbols (list)
1109 "Do color-symbol search-and-replace in svg file."
1110 (let ((type (plist-get (cdr list) :type))
1111 (file (plist-get (cdr list) :file))
1112 (color-symbols (plist-get (cdr list) :color-symbols)))
1113 (if (string= type "svg")
1114 (let ((data (with-temp-buffer (insert-file-contents file)
1116 (mapc (lambda (rule)
1117 (setq data (replace-regexp-in-string
1118 (concat "fill:" (car rule))
1119 (concat "fill:" (cdr rule)) data)))
1121 (cons (car list) (list :type type :data data)))
1125 (let ((command (format "%s" this-command)))
1126 (when (string-match "gnus" command)
1127 (if (string-match "gnus-other-frame" command)
1128 (gnus-get-buffer-create gnus-group-buffer)
1133 (require 'gnus-util)
1136 (defcustom gnus-parameters nil
1137 "Alist of group parameters.
1140 ((\"mail\\\\..*\" (gnus-show-threads nil)
1141 (gnus-use-scoring nil)
1142 (gnus-summary-line-format
1143 \"%U%R%z%I%(%[%d:%ub%-23,23f%]%) %s\\n\")
1146 (\"mail\\\\.me\" (gnus-use-scoring t))
1147 (\"list\\\\..*\" (total-expire . t)
1148 (broken-reply-to . t)))"
1150 :group 'gnus-group-various
1151 :type '(repeat (cons regexp
1154 (defcustom gnus-parameters-case-fold-search 'default
1155 "If it is t, ignore case of group names specified in `gnus-parameters'.
1156 If it is nil, don't ignore case. If it is `default', which is for the
1157 backward compatibility, use the value of `case-fold-search'."
1159 :group 'gnus-group-various
1160 :type '(choice :format "%{%t%}:\n %[Value Menu%] %v"
1161 (const :tag "Use `case-fold-search'" default)
1165 (defvar gnus-group-parameters-more nil)
1167 (defmacro gnus-define-group-parameter (param &rest rest)
1168 "Define a group parameter PARAM.
1169 REST is a plist of following:
1170 :type One of `bool', `list' or nil.
1171 :function The name of the function.
1172 :function-document The documentation of the function.
1173 :parameter-type The type for customizing the parameter.
1174 :parameter-document The documentation for the parameter.
1175 :variable The name of the variable.
1176 :variable-document The documentation for the variable.
1177 :variable-group The group for customizing the variable.
1178 :variable-type The type for customizing the variable.
1179 :variable-default The default value of the variable."
1180 (let* ((type (plist-get rest :type))
1181 (parameter-type (plist-get rest :parameter-type))
1182 (parameter-document (plist-get rest :parameter-document))
1183 (function (or (plist-get rest :function)
1184 (intern (format "gnus-parameter-%s" param))))
1185 (function-document (or (plist-get rest :function-document) ""))
1186 (variable (or (plist-get rest :variable)
1187 (intern (format "gnus-parameter-%s-alist" param))))
1188 (variable-document (or (plist-get rest :variable-document) ""))
1189 (variable-group (plist-get rest :variable-group))
1190 (variable-type (or (plist-get rest :variable-type)
1192 (list (regexp :tag "Group")
1193 ,(car (cdr parameter-type)))))))
1194 (variable-default (plist-get rest :variable-default)))
1197 `(defcustom ,variable ,variable-default
1199 :group 'gnus-group-parameter
1200 :group ',variable-group
1201 :type ,variable-type)
1202 `(setq gnus-group-parameters-more
1203 (delq (assq ',param gnus-group-parameters-more)
1204 gnus-group-parameters-more))
1205 `(add-to-list 'gnus-group-parameters-more
1208 ,parameter-document))
1210 `(defun ,function (name)
1212 (let ((params (gnus-group-find-parameter name))
1215 ((memq ',param params)
1217 ((setq val (assq ',param params))
1219 ((stringp ,variable)
1220 (string-match ,variable name))
1222 (let ((alist ,variable)
1224 (while (setq elem (pop alist))
1226 (string-match (car elem) name))
1229 (if (consp value) (car value) value))))))
1230 `(defun ,function (name)
1233 (or (gnus-group-find-parameter name ',param ,(and type t))
1234 (let ((alist ,variable)
1236 (while (setq elem (pop alist))
1238 (string-match (car elem) name))
1243 '(if (consp value) (car value) value))))))))))
1245 (defcustom gnus-home-directory "~/"
1246 "Directory variable that specifies the \"home\" directory.
1247 All other Gnus file and directory variables are initialized from this variable.
1249 Note that Gnus is mostly loaded when the `.gnus.el' file is read.
1250 This means that other directory variables that are initialized
1251 from this variable won't be set properly if you set this variable
1252 in `.gnus.el'. Set this variable in `.emacs' instead."
1256 (defcustom gnus-directory (or (getenv "SAVEDIR")
1257 (nnheader-concat gnus-home-directory "News/"))
1258 "*Directory variable from which all other Gnus file variables are derived.
1260 Note that Gnus is mostly loaded when the `.gnus.el' file is read.
1261 This means that other directory variables that are initialized from
1262 this variable won't be set properly if you set this variable in `.gnus.el'.
1263 Set this variable in `.emacs' instead."
1267 (defcustom gnus-default-directory nil
1268 "*Default directory for all Gnus buffers."
1270 :type '(choice (const :tag "current" nil)
1273 ;; Site dependent variables. These variables should be defined in
1276 (defvar gnus-default-nntp-server nil
1277 "Specify a default NNTP server.
1278 This variable should be defined in paths.el, and should never be set
1280 If you want to change servers, you should use `gnus-select-method'.
1281 See the documentation to that variable.")
1283 (defcustom gnus-nntpserver-file "/etc/nntpserver"
1284 "A file with only the name of the nntp server in it."
1289 (defun gnus-getenv-nntpserver ()
1290 "Find default nntp server.
1291 Check the NNTPSERVER environment variable and the
1292 `gnus-nntpserver-file' file."
1293 (or (getenv "NNTPSERVER")
1294 (and (file-readable-p gnus-nntpserver-file)
1296 (insert-file-contents gnus-nntpserver-file)
1297 (when (re-search-forward "[^ \t\n\r]+" nil t)
1298 (match-string 0))))))
1300 ;; `M-x customize-variable RET gnus-select-method RET' should work without
1301 ;; starting or even loading Gnus.
1302 ;;;###autoload(when (fboundp 'custom-autoload)
1303 ;;;###autoload (custom-autoload 'gnus-select-method "gnus"))
1305 (defcustom gnus-select-method
1306 (list 'nntp (or (gnus-getenv-nntpserver)
1307 (when (and gnus-default-nntp-server
1308 (not (string= gnus-default-nntp-server "")))
1309 gnus-default-nntp-server)
1311 "Default method for selecting a newsgroup.
1312 This variable should be a list, where the first element is how the
1313 news is to be fetched, the second is the address.
1315 For instance, if you want to get your news via \"flab.flab.edu\" using
1316 NNTP, you could say:
1318 \(setq gnus-select-method '(nntp \"flab.flab.edu\"))
1320 If you want to use your local spool, say:
1322 \(setq gnus-select-method (list 'nnspool (system-name)))
1324 If you use this variable, you must set `gnus-nntp-server' to nil.
1326 There is a lot more to know about select methods and virtual servers -
1327 see the manual for details."
1330 :initialize 'custom-initialize-default
1331 :type 'gnus-select-method)
1333 (defcustom gnus-message-archive-method "archive"
1334 "*Method used for archiving messages you've sent.
1335 This should be a mail method.
1337 See also `gnus-update-message-archive-method'."
1339 :group 'gnus-message
1340 :type '(choice (const :tag "Default archive method" "archive")
1341 gnus-select-method))
1343 (defcustom gnus-update-message-archive-method nil
1344 "Non-nil means always update the saved \"archive\" method.
1346 The archive method is initially set according to the value of
1347 `gnus-message-archive-method' and is saved in the \"~/.newsrc.eld\" file
1348 so that it may be used as a real method of the server which is named
1349 \"archive\" ever since. If it once has been saved, it will never be
1350 updated if the value of this variable is nil, even if you change the
1351 value of `gnus-message-archive-method' afterward. If you want the
1352 saved \"archive\" method to be updated whenever you change the value of
1353 `gnus-message-archive-method', set this variable to a non-nil value."
1356 :group 'gnus-message
1359 (defcustom gnus-message-archive-group '((format-time-string "sent.%Y-%m"))
1360 "*Name of the group in which to save the messages you've written.
1361 This can either be a string; a list of strings; or an alist
1362 of regexps/functions/forms to be evaluated to return a string (or a list
1363 of strings). The functions are called with the name of the current
1364 group (or nil) as a parameter.
1366 If you want to save your mail in one group and the news articles you
1367 write in another group, you could say something like:
1369 \(setq gnus-message-archive-group
1370 '((if (message-news-p)
1374 Normally the group names returned by this variable should be
1375 unprefixed -- which implicitly means \"store on the archive server\".
1376 However, you may wish to store the message on some other server. In
1377 that case, just return a fully prefixed name of the group --
1378 \"nnml+private:mail.misc\", for instance."
1380 :group 'gnus-message
1381 :type '(choice (const :tag "none" nil)
1382 (const :tag "Weekly" ((format-time-string "sent.%Yw%U")))
1383 (const :tag "Monthly" ((format-time-string "sent.%Y-%m")))
1384 (const :tag "Yearly" ((format-time-string "sent.%Y")))
1389 (defcustom gnus-secondary-servers nil
1390 "List of NNTP servers that the user can choose between interactively.
1391 To make Gnus query you for a server, you have to give `gnus' a
1392 non-numeric prefix - `C-u M-x gnus', in short."
1394 :type '(repeat string))
1395 (make-obsolete-variable 'gnus-secondary-servers 'gnus-select-method "24.1")
1397 (defcustom gnus-nntp-server nil
1398 "The name of the host running the NNTP server."
1400 :type '(choice (const :tag "disable" nil)
1402 (make-obsolete-variable 'gnus-nntp-server 'gnus-select-method "24.1")
1404 (defcustom gnus-secondary-select-methods nil
1405 "A list of secondary methods that will be used for reading news.
1406 This is a list where each element is a complete select method (see
1407 `gnus-select-method').
1409 If, for instance, you want to read your mail with the nnml back end,
1410 you could set this variable:
1412 \(setq gnus-secondary-select-methods '((nnml \"\")))"
1414 :type '(repeat gnus-select-method))
1416 (defcustom gnus-local-domain nil
1417 "Local domain name without a host name.
1418 The DOMAINNAME environment variable is used instead if it is defined.
1419 If the function `system-name' returns the full Internet name, there is
1420 no need to set this variable."
1421 :group 'gnus-message
1422 :type '(choice (const :tag "default" nil)
1424 (make-obsolete-variable 'gnus-local-domain nil "Emacs 24.1")
1426 ;; Customization variables
1428 (defcustom gnus-refer-article-method 'current
1429 "Preferred method for fetching an article by Message-ID.
1430 The value of this variable must be a valid select method as discussed
1431 in the documentation of `gnus-select-method'.
1433 It can also be a list of select methods, as well as the special symbol
1434 `current', which means to use the current select method. If it is a
1435 list, Gnus will try all the methods in the list until it finds a match."
1438 :type '(choice (const :tag "default" nil)
1440 (const :tag "Google" (nnweb "refer" (nnweb-type google)))
1443 (repeat :menu-tag "Try multiple"
1445 :value (current (nnweb "refer" (nnweb-type google)))
1446 (choice :tag "Method"
1448 (const :tag "Google"
1449 (nnweb "refer" (nnweb-type google)))
1450 gnus-select-method))))
1452 (defcustom gnus-use-cross-reference t
1453 "*Non-nil means that cross referenced articles will be marked as read.
1454 If nil, ignore cross references. If t, mark articles as read in
1455 subscribed newsgroups. If neither t nor nil, mark as read in all
1458 :type '(choice (const :tag "off" nil)
1459 (const :tag "subscribed" t)
1463 (defcustom gnus-process-mark ?#
1465 :group 'gnus-group-visual
1466 :group 'gnus-summary-marks
1469 (defcustom gnus-large-newsgroup 200
1470 "*The number of articles which indicates a large newsgroup.
1471 If the number of articles in a newsgroup is greater than this value,
1472 confirmation is required for selecting the newsgroup.
1473 If it is nil, no confirmation is required.
1475 Also see `gnus-large-ephemeral-newsgroup'."
1476 :group 'gnus-group-select
1477 :type '(choice (const :tag "No limit" nil)
1480 (defcustom gnus-use-long-file-name (not (memq system-type '(usg-unix-v)))
1481 "Non-nil means that the default name of a file to save articles in is the group name.
1482 If it's nil, the directory form of the group name is used instead.
1484 If this variable is a list, and the list contains the element
1485 `not-score', long file names will not be used for score files; if it
1486 contains the element `not-save', long file names will not be used for
1487 saving; and if it contains the element `not-kill', long file names
1488 will not be used for kill files.
1490 Note that the default for this variable varies according to what system
1491 type you're using. On `usg-unix-v' this variable defaults to nil while
1492 on all other systems it defaults to t."
1494 :type '(radio (sexp :format "Non-nil\n"
1495 :match (lambda (widget value)
1496 (and value (not (listp value))))
1499 (checklist (const :format "%v " not-score)
1500 (const :format "%v " not-save)
1503 (defcustom gnus-kill-files-directory gnus-directory
1504 "*Name of the directory where kill files will be stored (default \"~/News\")."
1505 :group 'gnus-score-files
1506 :group 'gnus-score-kill
1509 (defcustom gnus-save-score nil
1510 "*If non-nil, save group scoring info."
1511 :group 'gnus-score-various
1515 (defcustom gnus-use-undo t
1516 "*If non-nil, allow undoing in Gnus group mode buffers."
1520 (defcustom gnus-use-adaptive-scoring nil
1521 "*If non-nil, use some adaptive scoring scheme.
1522 If a list, then the values `word' and `line' are meaningful. The
1523 former will perform adaption on individual words in the subject
1524 header while `line' will perform adaption on several headers."
1526 :group 'gnus-score-adapt
1527 :type '(set (const word) (const line)))
1529 (defcustom gnus-use-cache 'passive
1530 "*If nil, Gnus will ignore the article cache.
1531 If `passive', it will allow entering (and reading) articles
1532 explicitly entered into the cache. If anything else, use the
1533 cache to the full extent of the law."
1536 :type '(choice (const :tag "off" nil)
1537 (const :tag "passive" passive)
1538 (const :tag "active" t)))
1540 (defcustom gnus-use-trees nil
1541 "*If non-nil, display a thread tree buffer."
1545 (defcustom gnus-keep-backlog 20
1546 "*If non-nil, Gnus will keep read articles for later re-retrieval.
1547 If it is a number N, then Gnus will only keep the last N articles
1548 read. If it is neither nil nor a number, Gnus will keep all read
1549 articles. This is not a good idea."
1551 :type '(choice (const :tag "off" nil)
1556 (defcustom gnus-suppress-duplicates nil
1557 "*If non-nil, Gnus will mark duplicate copies of the same article as read."
1561 (defcustom gnus-use-scoring t
1562 "*If non-nil, enable scoring."
1566 (defcustom gnus-summary-prepare-exit-hook
1567 '(gnus-summary-expire-articles)
1568 "*A hook called when preparing to exit from the summary buffer.
1569 It calls `gnus-summary-expire-articles' by default."
1570 :group 'gnus-summary-exit
1573 (defcustom gnus-novice-user t
1574 "*Non-nil means that you are a Usenet novice.
1575 If non-nil, verbose messages may be displayed and confirmations may be
1580 (defcustom gnus-expert-user nil
1581 "*Non-nil means that you will never be asked for confirmation about anything.
1582 That doesn't mean *anything* anything; particularly destructive
1583 commands will still require prompting."
1587 (defcustom gnus-interactive-catchup t
1588 "*If non-nil, require your confirmation when catching up a group."
1589 :group 'gnus-group-select
1592 (defcustom gnus-interactive-exit t
1593 "*If non-nil, require your confirmation when exiting Gnus.
1594 If `quiet', update any active summary buffers automatically
1595 first before exiting."
1599 (defcustom gnus-extract-address-components 'gnus-extract-address-components
1600 "*Function for extracting address components from a From header.
1601 Two pre-defined function exist: `gnus-extract-address-components',
1602 which is the default, quite fast, and too simplistic solution, and
1603 `mail-extract-address-components', which works much better, but is
1605 :group 'gnus-summary-format
1606 :type '(radio (function-item gnus-extract-address-components)
1607 (function-item mail-extract-address-components)
1608 (function :tag "Other")))
1610 (defcustom gnus-shell-command-separator ";"
1611 "String used to separate shell commands."
1615 (defcustom gnus-valid-select-methods
1616 '(("nntp" post address prompt-address physical-address)
1617 ("nnspool" post address)
1618 ("nnvirtual" post-mail virtual prompt-address)
1619 ("nnmbox" mail respool address)
1620 ("nnml" post-mail respool address)
1621 ("nnmh" mail respool address)
1622 ("nndir" post-mail prompt-address physical-address)
1623 ("nneething" none address prompt-address physical-address)
1624 ("nndoc" none address prompt-address)
1625 ("nnbabyl" mail address respool)
1626 ("nndraft" post-mail)
1627 ("nnfolder" mail respool address)
1628 ("nngateway" post-mail address prompt-address physical-address)
1631 ("nnagent" post-mail)
1632 ("nnimap" post-mail address prompt-address physical-address respool
1634 ("nnmaildir" mail respool address)
1636 "*An alist of valid select methods.
1637 The first element of each list lists should be a string with the name
1638 of the select method. The other elements may be the category of
1639 this method (i. e., `post', `mail', `none' or whatever) or other
1640 properties that this method has (like being respoolable).
1641 If you implement a new select method, all you should have to change is
1642 this variable. I think."
1644 :type '(repeat (group (string :tag "Name")
1645 (radio-button-choice (const :format "%v " post)
1646 (const :format "%v " mail)
1647 (const :format "%v " none)
1649 (checklist :inline t
1650 (const :format "%v " address)
1651 (const :format "%v " prompt-address)
1652 (const :format "%v " physical-address)
1653 (const :format "%v " virtual)
1657 (defun gnus-redefine-select-method-widget ()
1658 "Recomputes the select-method widget based on the value of
1659 `gnus-valid-select-methods'."
1660 (define-widget 'gnus-select-method 'list
1661 "Widget for entering a select method."
1663 :tag "Select Method"
1664 :args `((choice :tag "Method"
1665 ,@(mapcar (lambda (entry)
1666 (list 'const :format "%v\n"
1667 (intern (car entry))))
1668 gnus-valid-select-methods)
1669 (symbol :tag "other"))
1670 (string :tag "Address")
1671 (repeat :tag "Options"
1675 (sexp :tag "Value"))))))
1677 (gnus-redefine-select-method-widget)
1679 (defcustom gnus-updated-mode-lines '(group article summary tree)
1680 "List of buffers that should update their mode lines.
1681 The list may contain the symbols `group', `article', `tree' and
1682 `summary'. If the corresponding symbol is present, Gnus will keep
1683 that mode line updated with information that may be pertinent.
1684 If this variable is nil, screen refresh may be quicker."
1685 :group 'gnus-various
1686 :type '(set (const group)
1691 (defcustom gnus-mode-non-string-length 30
1692 "*Max length of mode-line non-string contents.
1693 If this is nil, Gnus will take space as is needed, leaving the rest
1694 of the mode line intact."
1696 :group 'gnus-various
1697 :type '(choice (const nil)
1700 ;; There should be special validation for this.
1701 (define-widget 'gnus-email-address 'string
1702 "An email address.")
1704 (gnus-define-group-parameter
1707 "Return GROUP's to-address."
1709 "*Alist of group regexps and correspondent to-addresses."
1710 :variable-group gnus-group-parameter
1711 :parameter-type '(gnus-email-address :tag "To Address")
1712 :parameter-document "\
1713 This will be used when doing followups and posts.
1715 This is primarily useful in mail groups that represent closed
1716 mailing lists--mailing lists where it's expected that everybody that
1717 writes to the mailing list is subscribed to it. Since using this
1718 parameter ensures that the mail only goes to the mailing list itself,
1719 it means that members won't receive two copies of your followups.
1721 Using `to-address' will actually work whether the group is foreign or
1722 not. Let's say there's a group on the server that is called
1723 `fa.4ad-l'. This is a real newsgroup, but the server has gotten the
1724 articles from a mail-to-news gateway. Posting directly to this group
1725 is therefore impossible--you have to send mail to the mailing list
1728 The gnus-group-split mail splitting mechanism will behave as if this
1729 address was listed in gnus-group-split Addresses (see below).")
1731 (gnus-define-group-parameter
1734 "Return GROUP's to-list."
1736 "*Alist of group regexps and correspondent to-lists."
1737 :variable-group gnus-group-parameter