Current File : //proc/self/root/kunden/usr/share/emacs/27.2/lisp/gnus/gnus-kill.elc |
;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\310\312\313\314& \210\304\315\316\317\310\311\313\320&\207" [require gnus gnus-art gnus-range custom-declare-variable gnus-kill-expiry-days 7 "Number of days before expiring unused kill file entries." :group gnus-score-kill gnus-score-expire :type integer gnus-kill-save-kill-file nil "If non-nil, will save kill files after processing them." boolean] 10)
#@45 What does this do, Lars?
I don't know, Per.
(defvar gnus-winconf-kill-file nil (#$ . 841))
#@220 If non-nil, Gnus will apply kill files to already killed articles.
If it is nil, Gnus will never apply kill files to articles that have
already been through the scoring process, which might very well save lots
of time.
(custom-declare-variable 'gnus-kill-killed t '(#$ . 939) :group 'gnus-score-kill :type 'boolean)
(defalias 'gnus-raise '(macro . #[(field expression level) "\303 \304\305\nDD\306BBBB\207" [field expression level gnus-kill function gnus-summary-raise-score (t)] 6]))
(defalias 'gnus-lower '(macro . #[(field expression level) "\303 \304\305\306\nDDD\307BBBB\207" [field expression level gnus-kill function gnus-summary-raise-score - (t)] 7]))
(defvar gnus-kill-file-mode-map (byte-code "\302 \303 \"\210\304\305\"\210)\207" [map emacs-lisp-mode-map make-sparse-keymap set-keymap-parent gnus-define-keys-1 ("" gnus-kill-file-kill-by-subject "" gnus-kill-file-kill-by-author "" gnus-kill-file-kill-by-thread "" gnus-kill-file-kill-by-xref "" gnus-kill-file-apply-buffer "" gnus-kill-file-apply-last-sexp "" gnus-kill-file-exit)] 3))
(defvar gnus-kill-file-mode-hook nil)
(byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [gnus-kill-file-mode-hook variable-documentation put "Hook run after entering Kill mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp gnus-kill-file-mode-map definition-name gnus-kill-file-mode] 4)
(defvar gnus-kill-file-mode-map (make-sparse-keymap))
(byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204 \303\307\310\311#\210\312\313 !\210\307\302N\204- \303\307\302\304\314!#\210\306\300!\204B \303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P \303\300\302\304\320!#\210\303\311\321\322#\207" [gnus-kill-file-mode-abbrev-table gnus-kill-file-mode-map variable-documentation put purecopy "Keymap for `gnus-kill-file-mode'." boundp gnus-kill-file-mode-syntax-table definition-name gnus-kill-file-mode (lambda (#1=#:def-tmp-var) (defvar gnus-kill-file-mode-syntax-table #1#)) make-syntax-table "Syntax table for `gnus-kill-file-mode'." (lambda (#1#) (defvar gnus-kill-file-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `gnus-kill-file-mode'." derived-mode-parent emacs-lisp-mode] 5)
#@2809 Major mode for editing kill files.
If you are using this mode - you probably shouldn't. Kill files
perform badly and paint with a pretty broad brush. Score files, on
the other hand, are vastly faster (40x speedup) and give you more
control over what to do.
In addition to Emacs-Lisp Mode, the following commands are available:
\{gnus-kill-file-mode-map}
A kill file contains Lisp expressions to be applied to a selected
newsgroup. The purpose is to mark articles as read on the basis of
some set of regexps. A global kill file is applied to every newsgroup,
and a local kill file is applied to a specified newsgroup. Since a
global kill file is applied to every newsgroup, for better performance
use a local one.
A kill file can contain any kind of Emacs Lisp expressions expected
to be evaluated in the Summary buffer. Writing Lisp programs for this
purpose is not so easy because the internal working of Gnus must be
well-known. For this reason, Gnus provides a general function which
does this easily for non-Lisp programmers.
The `gnus-kill' function executes commands available in Summary Mode
by their key sequences. `gnus-kill' should be called with FIELD,
REGEXP and optional COMMAND and ALL. FIELD is a string representing
the header field or an empty string. If FIELD is an empty string, the
entire article body is searched for. REGEXP is a string which is
compared with FIELD value. COMMAND is a string representing a valid
key sequence in Summary mode or Lisp expression. COMMAND defaults to
(gnus-summary-mark-as-read nil "X"). Make sure that COMMAND is
executed in the Summary buffer. If the second optional argument ALL
is non-nil, the COMMAND is applied to articles which are already
marked as read or unread. Articles which are marked are skipped over
by default.
For example, if you want to mark articles of which subjects contain
the string `AI' as read, a possible kill file may look like:
(gnus-kill "Subject" "AI")
If you want to mark articles with `D' instead of `X', you can use
the following expression:
(gnus-kill "Subject" "AI" "d")
In this example it is assumed that the command
`gnus-summary-mark-as-read-forward' is assigned to `d' in Summary Mode.
It is possible to delete unnecessary headers which are marked with
`X' in a kill file as follows:
(gnus-expunge "X")
If the Summary buffer is empty after applying kill files, Gnus will
exit the selected newsgroup normally. If headers which are marked
with `D' are deleted in a kill file, it is impossible to read articles
which are marked as read in the previous Gnus sessions. Marks other
than `D' should be used for articles which should really be deleted.
Entry to this mode calls emacs-lisp-mode-hook and
gnus-kill-file-mode-hook with no arguments, if that value is non-nil.
(defalias 'gnus-kill-file-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204'