Current File : //kunden/usr/share/emacs/27.2/lisp/gnus/gnus-util.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\312\313\314\315& \210\304\316\317\320\310\311\312\313\314\321& \210\322\323\324\"\210\322\325\326\"\210\322\327\326\"\210\322\330\331\"\207" [require seq time-date text-property-search custom-declare-variable gnus-completing-read-function 'gnus-emacs-completing-read "Function use to do completing read." :version "24.1" :group gnus-meta :type (radio (function-item :doc "Use Emacs standard `completing-read' function." gnus-emacs-completing-read) (function-item :doc "Use `ido-completing-read' function." gnus-ido-completing-read) (function-item :doc "Use iswitchb based completing-read function." gnus-iswitchb-completing-read)) gnus-completion-styles (append (when (and (assq 'substring completion-styles-alist) (not (memq 'substring completion-styles))) (list 'substring)) completion-styles) "Value of `completion-styles' to use when completing." (repeat symbol) autoload gnus-get-buffer-window "gnus-win" nnheader-narrow-to-headers "nnheader" nnheader-replace-chars-in-string mail-header-remove-comments "mail-parse"] 10)
#@212 Replace all matches for REGEXP with NEWTEXT in STRING.
If LITERAL is non-nil, insert NEWTEXT literally. Return a new
string containing the replacements.
This is a compatibility function for different Emacsen.
(defalias 'gnus-replace-in-string #[(string regexp newtext &optional literal) "\304 \n\305%\207" [regexp newtext string literal replace-regexp-in-string nil] 6 (#$ . 1512)])
(make-obsolete 'gnus-replace-in-string 'replace-regexp-in-string "26.1")
#@72 Pop to BUFFER, evaluate FORMS, and then return to the original window.
(defalias 'gnus-eval-in-buffer-window '(macro . #[(buffer &rest forms) "\305\306!\305\307!\305\310!\311\n\312BD \313\314BBDE\315\316\317 \316\320 D\321\322 DDE\323DF\fBB\320\nDEE+\207" [buf w tempvar buffer forms make-symbol "GnusStartBufferWindow" "w" "buf" let* ((selected-window)) gnus-get-buffer-window ('visible) unwind-protect progn if select-window set-buffer window-buffer pop-to-buffer] 11 (#$ . 1978)]))
(byte-code "\300\301\302\303#\210\300\301\304\305#\207" [put gnus-eval-in-buffer-window lisp-indent-function 1 edebug-form-spec (form body)] 4)
(defalias 'gnus-goto-char #[(point) "\205 b\207" [point] 1])
(put 'gnus-goto-char 'byte-optimizer 'byte-compile-inline-expand)
#@72 Delete by side effect the first occurrence of ELT as a member of LIST.
(defalias 'gnus-delete-first #[(elt list) "@ \232\203\n A\207A\203 A@ \232\204 A\211\202
A\203+ \211AA\241\210\n)\207" [list elt total] 3 (#$ . 2750)])
(defalias 'gnus-delete-line '(macro . #[(&optional n) "\301\302\303\304\206 \305D\306BBE\207" [n delete-region (point-at-bol) progn forward-line 1 ((point))] 5]))
#@275 Extract address components from a From header.
Given an RFC-822 (or later) address FROM, extract name and address.
Returns a list of the form (FULL-NAME CANONICAL-ADDRESS). Much more simple
solution than `mail-header-parse-address', which works much better, but
is slower.
(defalias 'gnus-extract-address-components #[(from) "\303\211\304\305\n\"\203 \306\n\307\224\307\225#\202% \304\310\n\"\203% \306\n\311\224\311\225#\203O \304\312\313!\314Q\n\"\203O \306\n\311\211\224#\211\203O \304\315 \"\203O \306 \307\311\225S# \204\205 \304\316\n\"\203h \306\n\311\224T\311\225S#\211\204\205 \304\317\n\"\203u \211\204\205 \304\320\n\"\203\205 \306\n\311\224T\311\225# \321\230?\205\215 \206\222 \n*D\207" [address name from nil string-match "<\\([^@ <>]+[!@][^@ <>]+\\)>" substring 1 "\\b[^@ <>]+[!@][^@ <>]+\\b" 0 "[ ]*<" regexp-quote ">" "^\".*\"$" "(.+)" "()" "(.*" ""] 4 (#$ . 3158)])
#@58 Return the value of the header FIELD of current article.
(defalias 'gnus-fetch-field #[(field) "\302\303!\210\212\214\304\305 \210\306 !+\207" [inhibit-point-motion-hooks field require message t nnheader-narrow-to-headers message-fetch-field] 2 (#$ . 4069)])
#@63 Fetch FIELD from the original version of the current article.
(defalias 'gnus-fetch-original-field #[(field) "rq\210\302 !)\207" [gnus-original-article-buffer field gnus-fetch-field] 2 (#$ . 4335)])
(defalias 'gnus-goto-colon #[nil "\301\302!\210\303 \304`\305\306$\206 \307\310\306#\206 `b)\207" [eol move-beginning-of-line 1 point-at-eol text-property-any gnus-position t search-forward ":"] 5])
#@475 Search current buffer for text property PROP with VALUE.
Behaves like a combination of `text-property-any' and
`text-property-search-forward'. Searches for the beginning of a
text property `equal' to VALUE. Returns the value of point at
the beginning of the matching text property span.
If FORWARD-ONLY is non-nil, only search forward from point.
If GOTO is non-nil, move point to the beginning of that span
instead.
If END is non-nil, use the end of the span instead.
(defalias 'gnus-text-property-search #[(prop value &optional forward-only goto end) "` \204 eb\210\306\n\307#\211\205@
\203- \310\f!>\204'