;ELC   
;;; compiled by amu@tux.mit.edu on Sun Nov 15 14:41:40 1998
;;; from file /afs/sipb.mit.edu/contrib/emacs/packages/gnus-5.6.44/lisp/gnus-cus.el
;;; emacs version 19.34.1.
;;; bytecomp version FSF 2.10
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`gnus-cus.el' was compiled for Emacs 19.29 or later"))


(byte-code "ÀÁ!ˆÀÂ!ˆÃÄÅÆ#‡" [require wid-edit gnus-score define-widget gnus-email-address string "An email address"] 4)
#@420 Major mode for editing Gnus customization buffers.

The following commands are available:

\[widget-forward]		Move to next button or editable field.
\[widget-backward]		Move to previous button or editable field.
\[widget-button-click]		Activate button under the mouse pointer.
\[widget-button-press]		Activate button under point.

Entry to this mode calls the value of `gnus-custom-mode-hook'
if that value is non-nil.
(defalias 'gnus-custom-mode #[nil "À ˆÁÃÅ!ˆÇÈ!‡" [kill-all-local-variables gnus-custom-mode major-mode "Gnus Customize" mode-name use-local-map widget-keymap gnus-run-hooks gnus-custom-mode-hook] 2 (#$ . 619)])
#@221 Alist of valid group parameters.

Each entry has the form (NAME TYPE DOC), where NAME is the parameter
itself (a symbol), TYPE is the parameters type (a sexp widget), and
DOC is a documentation string for the parameter.
(defconst gnus-group-parameters (quote ((to-address (gnus-email-address :tag "To Address") "This will be used when doing followups and posts.\n\nThis is primarily useful in mail groups that represent closed\nmailing lists--mailing lists where it's expected that everybody that\nwrites to the mailing list is subscribed to it.  Since using this\nparameter ensures that the mail only goes to the mailing list itself,\nit means that members won't receive two copies of your followups.\n\nUsing `to-address' will actually work whether the group is foreign or\nnot.  Let's say there's a group on the server that is called\n`fa.4ad-l'.  This is a real newsgroup, but the server has gotten the\narticles from a mail-to-news gateway.  Posting directly to this group\nis therefore impossible--you have to send mail to the mailing list\naddress instead.") (to-list (gnus-email-address :tag "To List") "This address will be used when doing a `a' in the group.\n\nIt is totally ignored when doing a followup--except that if it is\npresent in a news group, you'll get mail group semantics when doing\n`f'.") (broken-reply-to (const :tag "Broken Reply To" t) "Ignore `Reply-To' headers in this group.\n\nThat can be useful if you're reading a mailing list group where the\nlistserv has inserted `Reply-To' headers that point back to the\nlistserv itself.  This is broken behavior.  So there!") (to-group (string :tag "To Group") "All posts will be send to the specified group.") (gcc-self (choice :tag "GCC" :value t (const t) (const none) (string :format "%v" :hide-front-space t)) "Specify default value for GCC header.\n\nIf this symbol is present in the group parameter list and set to `t',\nnew composed messages will be `Gcc''d to the current group. If it is\npresent and set to `none', no `Gcc:' header will be generated, if it\nis present and a string, this string will be inserted literally as a\n`gcc' header (this symbol takes precedence over any default `Gcc'\nrules as described later).") (auto-expire (const :tag "Automatic Expire" t) "All articles that are read will be marked as expirable.") (total-expire (const :tag "Total Expire" t) "All read articles will be put through the expiry process\n\nThis happens even if they are not marked as expirable.\nUse with caution.") (expiry-wait (choice :tag "Expire Wait" :value never (const never) (const immediate) (number :hide-front-space t :format "%v")) "When to expire.\n\nOverrides any `nnmail-expiry-wait' and `nnmail-expiry-wait-function'\nwhen expiring expirable messages. The value can either be a number of\ndays (not necessarily an integer) or the symbols `never' or\n`immediate'.") (score-file (file :tag "Score File") "Make the specified file into the current score file.\nThis means that all score commands you issue will end up in this file.") (adapt-file (file :tag "Adapt File") "Make the specified file into the current adaptive file.\nAll adaptive score entries will be put into this file.") (admin-address (gnus-email-address :tag "Admin Address") "Administration address for a mailing list.\n\nWhen unsubscribing to a mailing list you should never send the\nunsubscription notice to the mailing list itself.  Instead, you'd\nsend messages to the administrative address.  This parameter allows\nyou to put the admin address somewhere convenient.") (display (choice :tag "Display" :value default (const all) (const default)) "Which articles to display on entering the group.\n\n`all'\n     Display all articles, both read and unread.\n\n`default'\n     Display the default visible articles, which normally includes\n     unread and ticked articles.") (comment (string :tag "Comment") "An arbitrary comment on the group.") (visible (const :tag "Permanently visible" t) "Always display this group, even when there are no unread articles\nin it.."))) (#$ . 1260))
(byte-code "À	BÂ	BÃ	BÀ‡" [gnus-custom-params current-load-list gnus-custom-method gnus-custom-group] 2)
#@37 Edit the group on the current line.
(defalias 'gnus-group-customize #[(group) "ÀÁÂ\"„ ÇÈ!ˆÉÊ\"J8‰„\" ÇÌ!ˆÍÎÏ!!ˆÐÎÏ!!ˆÑ ˆÒÓ!ˆÔÕ!ˆÖ×ÙÛÜ&ˆÔÝ!ˆÔ!ˆÔÞ!ˆÖßàá\"ã&ˆÔä!ˆÒå!ˆÖÆ&ç8èéêëêÚìíîïð\fBBBBBBBBBBBñò&%Ôó!ˆÖ×ôõö&ˆÔ÷!ˆÖøù&ú8%;ü=!ˆþ *‡" [nil mapcar #[(entry) "ÀÁÂÃÄ8ÆÁÇ@FA@¯‡" [cons :format "%v%h\n" :doc 2 entry const ""] 9] gnus-group-parameters types info group error "No group on current line" 2 intern-soft gnus-newsrc-hashtb "Killed group; can't be edited" kill-buffer gnus-get-buffer-create "*Gnus Customize*" switch-to-buffer gnus-custom-mode make-local-variable gnus-custom-group widget-insert "Customize the " widget-create info-link :help-echo "Push me to learn more." :tag "group parameters" "(gnus)Group Parameters" " for <" "> and press " push-button "done" "Push me when done customizing." :action gnus-group-customize-done ".\n\n" gnus-custom-params :value 5 set :inline t :greedy "Parameters" :format "%t:\n%h%v" :doc "These special paramerters are recognized by Gnus.\nCheck the [ ] for the parameters you want to apply to this group, then\nedit the value to suit your taste." (repeat :inline t :tag "Variables" :format "%t:\n%h%v%i\n\n" :doc "Set variables local to the group you are entering.\n\nIf you want to turn threading off in `news.answers', you could put\n`(gnus-show-threads nil)' in the group parameters of that group.\n`gnus-show-threads' will be made into a local variable in the summary\nbuffer you enter, and the form `nil' will be `eval'ed there.\n\nThis can also be used as a group-specific hook function, if you'd\nlike.  If you want to hear a beep when you enter a group, you could\nput something like `(dummy-variable (ding))' in the parameters of that\ngroup.  `dummy-variable' will be set to the result of the `(ding)'\nform, but who cares?" (group :value (nil nil) (symbol :tag "Variable") (sexp :tag "Value"))) (repeat :inline t :tag "Unknown entries" sexp) "\n\nYou can also edit the " "select method" "Push me to learn more about select methods." "(gnus)Select Methods" " for the group.\n" sexp "Method" 4 gnus-custom-method use-local-map widget-keymap widget-setup] 16 (#$ . 5419) (list (gnus-group-group-name))])
#@36 Apply changes and bury the buffer.
(defalias 'gnus-group-customize-done #[(&rest ignore) "ÀÁ\nÃ\f!#ˆÀÅ\nÃ!#ˆÇ ‡" [gnus-group-edit-group-done params gnus-custom-group widget-value gnus-custom-params method gnus-custom-method bury-buffer] 5 (#$ . 7624) nil])
#@230 Alist of valid symbolic score parameters.

Each entry has the form (NAME TYPE DOC), where NAME is the parameter
itself (a symbol), TYPE is the parameters type (a sexp widget), and DOC is a
documentation string for the parameter.
(defconst gnus-score-parameters (quote ((mark (number :tag "Mark") "The value of this entry should be a number.\nAny articles with a score lower than this number will be marked as read.") (expunge (number :tag "Expunge") "The value of this entry should be a number.\nAny articles with a score lower than this number will be removed from\nthe summary buffer.") (mark-and-expunge (number :tag "Mark-and-expunge") "The value of this entry should be a number.\nAny articles with a score lower than this number will be marked as\nread and removed from the summary buffer.") (thread-mark-and-expunge (number :tag "Thread-mark-and-expunge") "The value of this entry should be a number.\nAll articles that belong to a thread that has a total score below this\nnumber will be marked as read and removed from the summary buffer.\n`gnus-thread-score-function' says how to compute the total score\nfor a thread.") (files (repeat :inline t :tag "Files" file) "The value of this entry should be any number of file names.\nThese files are assumed to be score files as well, and will be loaded\nthe same way this one was.") (exclude-files (repeat :inline t :tag "Exclude-files" file) "The clue of this entry should be any number of files.\nThese files will not be loaded, even though they would normally be so,\nfor some reason or other.") (eval (sexp :tag "Eval" :value nil) "The value of this entry will be `eval'el.\nThis element will be ignored when handling global score files.") (read-only (boolean :tag "Read-only" :value t) "Read-only score files will not be updated or saved.\nGlobal score files should feature this atom.") (orphan (number :tag "Orphan") "The value of this entry should be a number.\nArticles that do not have parents will get this number added to their\nscores.  Imagine you follow some high-volume newsgroup, like\n`comp.lang.c'.  Most likely you will only follow a few of the threads,\nalso want to see any new threads.\n\nYou can do this with the following two score file entries:\n\n     (orphan -500)\n     (mark-and-expunge -100)\n\nWhen you enter the group the first time, you will only see the new\nthreads.  You then raise the score of the threads that you find\ninteresting (with `I T' or `I S'), and ignore (`C y') the rest.\nNext time you enter the group, you will see new articles in the\ninteresting threads, plus any new threads.\n\nI.e.---the orphan score atom is for high-volume groups where there\nexist a few interesting threads which can't be found automatically\nby ordinary scoring rules.") (adapt (choice :tag "Adapt" (const t) (const ignore) (sexp :format "%v" :hide-front-space t)) "This entry controls the adaptive scoring.\nIf it is `t', the default adaptive scoring rules will be used.  If it\nis `ignore', no adaptive scoring will be performed on this group.  If\nit is a list, this list will be used as the adaptive scoring rules.\nIf it isn't present, or is something other than `t' or `ignore', the\ndefault adaptive scoring rules will be used.  If you want to use\nadaptive scoring on most groups, you'd set `gnus-use-adaptive-scoring'\nto `t', and insert an `(adapt ignore)' in the groups where you do not\nwant adaptive scoring.  If you only want adaptive scoring in a few\ngroups, you'd set `gnus-use-adaptive-scoring' to `nil', and insert\n`(adapt t)' in the score files of the groups where you want it.") (adapt-file (file :tag "Adapt-file") "All adaptive score entries will go to the file named by this entry.\nIt will also be applied when entering the group.  This atom might\nbe handy if you want to adapt on several groups at once, using the\nsame adaptive file for a number of groups.") (local (repeat :tag "Local" (group :value (nil nil) (symbol :tag "Variable") (sexp :tag "Value"))) "The value of this entry should be a list of `(VAR VALUE)' pairs.\nEach VAR will be made buffer-local to the current summary buffer,\nand set to the value specified.  This is a convenient, if somewhat\nstrange, way of setting variables in some groups if you don't like\nhooks much.") (touched (sexp :format "Touched\n") "Internal variable."))) (#$ . 7890))
(define-widget (quote gnus-score-string) (quote group) "Edit score entries for string-valued headers." :convert-widget (quote gnus-score-string-convert))
(defalias 'gnus-score-string-convert #[(widget) "À	\n\"ÄÅÆÇ—¯É\nË\fÍÏÑ\n\f¯À	\"†4 ÓÔQÕP×	ÙÚÛÜÝÂÒÅÞßÅàÇáâBBBBBB¯\fD#ˆ.	‡" [widget-get widget :tag tag const :format "" :value item (string :tag "Match") match (choice :tag "Score" (const :tag "default" nil) (integer :format "%v" :hide-front-space t)) score (choice :tag "Expire" (const :tag "off" nil) (integer :format "%v" :hide-front-space t)) expire (choice :tag "Type" :value s (const :tag "Regexp" r) (const :tag "Regexp (fixed case)" R) (const :tag "Substring" s) (const :tag "Substring (fixed case)" S) (const :tag "Exact" e) (const :tag "Exact (fixed case)" E) (const :tag "Word" w) (const :tag "Word (fixed case)" W) (const :tag "default" nil)) type group :doc "Change score based on the " " header.\n" "\nYou can have an arbitrary number of score entries for this header,\neach score entry has four elements:\n\n1. The \"match element\".  This should be the string to look for in the\n   header.\n\n2. The \"score element\".  This number should be an integer in the\n   neginf to posinf interval.  This number is added to the score\n   of the article if the match is successful.  If this element is\n   not present, the `gnus-score-interactive-default-score' number\n   will be used instead.  This is 1000 by default.\n\n3. The \"date element\".  This date says when the last time this score\n   entry matched, which provides a mechanism for expiring the\n   score entries.  It this element is not present, the score\n   entry is permanent.  The date is represented by the number of\n   days since December 31, 1 ce.\n\n4. The \"type element\".  This element specifies what function should\n   be used to see whether this score entry matches the article.\n\n   There are the regexp, as well as substring types, and exact match,\n   and word match types.  If this element is not present, Gnus will\n   assume that substring matching should be used.  There is case\n   sensitive variants of all match types." doc widget-put :args repeat :inline t :indent 0 "%t:\n%h%v%i\n\n" choice "%v" ("" nil nil s) (sexp)] 22])
(define-widget (quote gnus-score-integer) (quote group) "Edit score entries for integer-valued headers." :convert-widget (quote gnus-score-integer-convert))
(defalias 'gnus-score-integer-convert #[(widget) "À	\n\"ÄÅÆÇ—¯É\nË\fÍÏÑ\n\f¯À	\"†4 ÓÔQ°Ö	ØÙÚÛÜÂÒÅÝ¯\fD#ˆ.	‡" [widget-get widget :tag tag const :format "" :value item (integer :tag "Match") match (choice :tag "Score" (const :tag "default" nil) (integer :format "%v" :hide-front-space t)) score (choice :tag "Expire" (const :tag "off" nil) (integer :format "%v" :hide-front-space t)) expire (choice :tag "Type" :value < (const <) (const >) (const =) (const >=) (const <=)) type group :doc "Change score based on the " " header." doc widget-put :args repeat :inline t :indent 0 "%t:\n%h%v%i\n\n"] 16])
(define-widget (quote gnus-score-date) (quote group) "Edit score entries for date-valued headers." :convert-widget (quote gnus-score-date-convert))
(defalias 'gnus-score-date-convert #[(widget) "À	\n\"ÄÅÆÇ—¯É\nË\fÍÏÑ\n\f¯À	\"†4 ÓÔQÕP×	ÙÚÛÜÝÂÒÅÞ¯\fD#ˆ.	‡" [widget-get widget :tag tag const :format "" :value item (string :tag "Match") match (choice :tag "Score" (const :tag "default" nil) (integer :format "%v" :hide-front-space t)) score (choice :tag "Expire" (const :tag "off" nil) (integer :format "%v" :hide-front-space t)) expire (choice :tag "Type" :value regexp (const regexp) (const before) (const at) (const after)) type group :doc "Change score based on the " " header." "\nFor the Date header we have three kinda silly match types: `before',\n`at' and `after'.  I can't really imagine this ever being useful, but,\nlike, it would feel kinda silly not to provide this function.  Just in\ncase.  You never know.  Better safe than sorry.  Once burnt, twice\nshy.  Don't judge a book by its cover.  Never not have sex on a first\ndate.  (I have been told that at least one person, and I quote,\n\"found this function indispensable\", however.)\n\nA more useful match type is `regexp'.  With it, you can match the date\nstring using a regular expression.  The date is normalized to ISO8601\ncompact format first---`YYYYMMDDTHHMMSS'.  If you want to match all\narticles that have been posted on April 1st in every year, you could\nuse `....0401.........' as a match string, for instance.  (Note that\nthe date is kept in its original time zone, so this will match\narticles that were posted when it was April 1st where the article was\nposted from.  Time zones are such wholesome fun for the whole family,\neh?" doc widget-put :args repeat :inline t :indent 0 "%t:\n%h%v%i\n\n"] 16])
(byte-code "À	BÂ	BÀ‡" [gnus-custom-scores current-load-list gnus-custom-score-alist] 2)
#@28 Customize score file FILE.
(defalias 'gnus-score-customize #[(file) "À	!ÂÃ\f\"ÇÈÉ!!ˆÊÈÉ!!ˆË ˆÌÍ!ˆÎÏ!ˆÐÑÓÕÖ&ˆÎ×!ˆÎ	!ˆÎØ!ˆÐÙÚÛÝ&ˆÎÞ!ˆÐÙßà$ˆÎá!ˆÌâ!ˆÐã$åæçèçéêëìíîïðñòóôõBBBBBBBBBBBBBBBBBBö%\"÷8!ˆù *‡" [gnus-score-load file mapcar #[(entry) "ÀÁÂÃÄ8ÆÁÇ@FA@¯‡" [group :format "%v%h\n" :doc 2 entry const ""] 9] gnus-score-parameters types scores kill-buffer gnus-get-buffer-create "*Gnus Customize*" switch-to-buffer gnus-custom-mode make-local-variable gnus-custom-score-alist widget-insert "Customize the " widget-create info-link :help-echo "Push me to learn more." :tag "score entries" "(gnus)Score File Format" " for\n	" "\nand press " push-button "done" "Push me when done customizing." :action gnus-score-customize-done ".\n\nCheck the [ ] for the entries you want to apply to this score file, then\nedit the value to suit your taste.  Don't forget to mark the checkbox,\nif you do all your changes will be lost.  " #[(&rest ignore) "ÀÁ!ˆÂÃ!‡" [require gnus-audio gnus-audio-play "Evil_Laugh.au"] 2] "Bhahahah!" "\n\n" gnus-custom-scores group :value checklist :inline t :greedy (gnus-score-string :tag "From") (gnus-score-string :tag "Subject") (gnus-score-string :tag "References") (gnus-score-string :tag "Xref") (gnus-score-string :tag "Message-ID") (gnus-score-integer :tag "Lines") (gnus-score-integer :tag "Chars") (gnus-score-date :tag "Date") (gnus-score-string :tag "Head" :doc "Match all headers in the article.\n\nUsing one of `Head', `Body', `All' will slow down scoring considerable.\n") (gnus-score-string :tag "Body" :doc "Match the body sans header of the article.\n\nUsing one of `Head', `Body', `All' will slow down scoring considerable.\n") (gnus-score-string :tag "All" :doc "Match the entire article, including both headers and body.\n\nUsing one of `Head', `Body', `All' will slow down scoring\nconsiderable.\n") (gnus-score-string :tag "Followup" :doc "Score all followups to the specified authors.\n\nThis entry is somewhat special, in that it will match the `From:'\nheader, and affect the score of not only the matching articles, but\nalso all followups to the matching articles.  This allows you\ne.g. increase the score of followups to your own articles, or decrease\nthe score of followups to the articles of some known trouble-maker.\n") (gnus-score-string :tag "Thread" :doc "Add a score entry on all articles that are part of a thread.\n\nThis match key works along the same lines as the `Followup' match key.\nIf you say that you want to score on a (sub-)thread that is started by\nan article with a `Message-ID' X, then you add a `thread' match.  This\nwill add a new `thread' match for each article that has X in its\n`References' header.  (These new `thread' matches will use the\n`Message-ID's of these matching articles.)  This will ensure that you\ncan raise/lower the score of an entire thread, even though some\narticles in the thread may not have complete `References' headers.\nNote that using this may lead to undeterministic scores of the\narticles in the thread.\n") (repeat :inline t :tag "Unknown entries" sexp) use-local-map widget-keymap widget-setup] 23 (#$ . 17186) (list gnus-current-score-file)])
#@47 Reset the score alist with the present value.
(defalias 'gnus-score-customize-done #[(&rest ignore) "Á\n!‰@ ˆ\fA¡ˆÅÆÇ\f#ˆ*È ‡" [gnus-custom-score-alist widget-value gnus-custom-scores value alist gnus-score-set touched (t) bury-buffer] 5 (#$ . 20376)])
(provide (quote gnus-cus))
