Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/gnus/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:54 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/gnus/gnus-kill.el ;;; in Emacs version 24.3.1 ;;; 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\312\313&\210\304\314\315\316\310\311\310\317\312\320& \210\304\321\306\322\310\311\312\323&\210\304\324\306\325\310\311\312\326&\210\304\327\330\331\310\311\312\323&\207" [require gnus gnus-art gnus-range custom-declare-variable gnus-kill-file-mode-hook nil "Hook for Gnus kill file mode." :group gnus-score-kill :type hook gnus-kill-expiry-days 7 "*Number of days before expiring unused kill file entries." gnus-score-expire integer gnus-kill-save-kill-file "*If non-nil, will save kill files after processing them." boolean gnus-winconf-kill-file "What does this do, Lars?\nI don't know, Per." sexp gnus-kill-killed t "*If non-nil, Gnus will apply kill files to already killed articles.\nIf it is nil, Gnus will never apply kill files to articles that have\nalready been through the scoring process, which might very well save lots\nof time."] 10) (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 nil) (byte-code "\204 \302\303 !\211\304\"\210\302\207" [gnus-kill-file-mode-map emacs-lisp-mode-map gnus-define-keys-1 copy-keymap ("" 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) #@2810 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 "\304 \210\305!\210\306 !\210\307\310\311\312!\210\313\314\315\"\207" [gnus-kill-file-mode-map emacs-lisp-mode-syntax-table major-mode mode-name kill-all-local-variables use-local-map set-syntax-table gnus-kill-file-mode "Kill" lisp-mode-variables nil gnus-run-mode-hooks emacs-lisp-mode-hook gnus-kill-file-mode-hook] 3 (#$ . 2246) nil]) #@97 Begin editing a kill file for NEWSGROUP. If NEWSGROUP is nil, the global kill file is selected. (defalias 'gnus-kill-file-edit-file #[(newsgroup) "\306!\307\310 !!\210\311 !\203 \312\311 !!\204 \313 \314 !\312!\203, \315!\210\202Z \f\316=\203= \317\320!\210\315!\210\202Z \f\321=\203V \317\322!\210\315 !\210\323 !\210\324!\210\202Z \325 !\210)\326 )\207" [newsgroup file gnus-winconf-kill-file buffer major-mode gnus-article-buffer gnus-newsgroup-kill-file gnus-make-directory file-name-directory get-file-buffer get-buffer-window current-window-configuration find-file-noselect pop-to-buffer gnus-group-mode gnus-configure-windows group gnus-summary-mode article bury-buffer switch-to-buffer find-file-other-window gnus-kill-file-mode] 3 (#$ . 5440) "sNewsgroup: "]) (defalias 'gnus-kill-set-kill-buffer #[nil "\303!\304 !\211q\210\305 \210\306\n!*\207" [gnus-newsgroup-name file buffer gnus-newsgroup-kill-file find-file-noselect gnus-kill-file-mode bury-buffer] 3]) (defalias 'gnus-kill-file-enter-kill #[(field regexp &optional dont-move) "\212\305 \306=\204\f \307 \210\n\204 db\210\310\311\f#\211c\210\312!*\207" [string major-mode dont-move field regexp nil gnus-kill-file-mode gnus-kill-set-kill-buffer format "(gnus-kill %S %S)\n" gnus-kill-file-apply-string] 4]) #@18 Kill by subject. (defalias 'gnus-kill-file-kill-by-subject #[nil "\301\302\303!\203 \304\305\306H!!\202 \307\310#\207" [gnus-current-headers gnus-kill-file-enter-kill "Subject" vectorp regexp-quote gnus-simplify-subject 1 "" t] 6 (#$ . 6738) nil]) #@17 Kill by author. (defalias 'gnus-kill-file-kill-by-author #[nil "\301\302\303!\203 \304\305H!\202 \306\307#\207" [gnus-current-headers gnus-kill-file-enter-kill "From" vectorp regexp-quote 2 "" t] 5 (#$ . 6996) nil]) #@17 Kill by author. (defalias 'gnus-kill-file-kill-by-thread #[nil "\301\302\303!\203 \304\305H!\202 \306\"\207" [gnus-current-headers gnus-kill-file-enter-kill "References" vectorp regexp-quote 4 ""] 5 (#$ . 7222) nil]) #@15 Kill by Xref. (defalias 'gnus-kill-file-kill-by-xref #[nil "\305!\205 \306H\307\310\211\2038 \311\312\n#\205= \307\225\313\224\313\225O\211\f\230\204 \314\315\316\317 !\320Q\321#\210\202 \314\315\322\321#+\207" [gnus-current-headers group start xref gnus-newsgroup-name vectorp 8 0 nil string-match " \\([^ ]+\\):" 1 gnus-kill-file-enter-kill "Xref" " " regexp-quote ":" t ""] 6 (#$ . 7449) nil]) #@54 Raise score for all followups to the current author. (defalias 'gnus-kill-file-raise-followups-to-author #[(level) "\304H\305\212\306 \210eb\210\307\310\311Q\312\n!\"\313\314\315\n$\211c\210\316 !\210)\317\320\321\n#*\207" [gnus-current-headers string name level 2 nil gnus-kill-set-kill-buffer read-string "Add " " to followup articles to: " regexp-quote format "(gnus-kill %S %S '(gnus-summary-temporarily-raise-by-thread %S))\n" "From" gnus-kill-file-apply-string gnus-message 6 "Added temporary score file entry for followups to %s."] 6 (#$ . 7865) "p"]) #@44 Apply current buffer to current newsgroup. (defalias 'gnus-kill-file-apply-buffer #[nil "\203 \302 !\203 \303\304 !\207\305 \210\306\307\310\"\207" [gnus-current-kill-article gnus-summary-buffer get-buffer gnus-kill-file-apply-string buffer-string ding gnus-message 2 "No newsgroup is selected."] 3 (#$ . 8437) nil]) #@36 Apply STRING to current newsgroup. (defalias 'gnus-kill-file-apply-string #[(string) "\303\304Q\212\305 \306\216\307\n!\210\310\311!@!,\207" [string #1=#:wconfig gnus-summary-buffer "(progn \n" "\n)" current-window-configuration ((set-window-configuration #1#)) pop-to-buffer eval read-from-string] 3 (#$ . 8763) nil]) #@65 Apply sexp before point in current buffer to current newsgroup. (defalias 'gnus-kill-file-apply-last-sexp #[nil "\203&